Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoaleman/138853f6d8c99f7a2cb47fb7f99f712e to your computer and use it in GitHub Desktop.
Save fernandoaleman/138853f6d8c99f7a2cb47fb7f99f712e to your computer and use it in GitHub Desktop.
How To Manually Update Chef Server SSL Certificates

How To Manually Update Chef Server SSL Certificates

Replace the contents of /var/opt/opscode/nginx/ca/www.yourdomain.com.crt with your ssl combined certificate.

Make sure SSL certificate includes DigiCert ca root certificate

Replace the contents of /var/opt/opscode/nginx/ca/www.yourdomain.com.key with your ssl key.

Reconfigure chef server

chef-server-ctl reconfigure

Restart nginx

chef-server-ctl restart nginx

Test your ssl certificates by going to a browser

https://www.yourdomain.com

Locally, you'll also need to run

knife ssl check

to test new SSL certificate and

knife ssl fetch

to pull down the new certificate to the trusted_certs directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment