A
A
Andrey2018-05-16 10:21:45
Ruby on Rails
Andrey, 2018-05-16 10:21:45

Where to store key or certificate files?

In general, there are third-party service key files.
In one of the projects I met how they were stored in the root of the application (in a folder).
I met that they were stored in db/ssl/client.key
A in fact how (can store keys in environment variables) and where is it better to store such files?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artur Bordenyuk, 2018-05-16
@HighQuality

On production. Not in the repository.

O
OnYourLips, 2018-05-16
@OnYourLips

In a special infrastructure repository in encrypted form.
In this repository you keep scripts/manifests to set up your servers for the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question