Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Where to put SSL certificates and keys in Chef repository? #188

Open
conradwt opened this issue Mar 30, 2015 · 3 comments
Open

Where to put SSL certificates and keys in Chef repository? #188

conradwt opened this issue Mar 30, 2015 · 3 comments

Comments

@conradwt
Copy link

HI, I have purchased SSL certs from a certificate authority (CA). Also, I added the files names to the site.json file within the nodes directory. For example,

"ssl_info": {
  "key": "example.com.key",
  "crt": "example.com.crt"
},

Now, where exactly should I put the actual certificates and keys within the chef-repo so that they are properly uploaded to the server and available to Nginx? At this time, the following files are empty after provisioning the server:

/u/apps/example_production/shared/config/certificate.crt
/u/apps/example_production/shared/config/certificate.key
@jvanbaarsen
Copy link
Contributor

@conradwt You can add the content of the SSL keys to:

"ssl_info": {
  "key": "Here the content of the cert.key file",
  "crt": "Here the content of the cert.crt file."
},

@conradwt
Copy link
Author

@jvanbaarsen Is it possible to not have to include the content within the node.json?

@jvanbaarsen
Copy link
Contributor

@conradwt In that case you have to move them to the server yourself using scp. Then you don't have to add any ssl_info in your node.json, since it will see the certificates in /u/apps/your_app/shared/config/ and use those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants