Created
May 13, 2015 16:05
-
-
Save pburkholder/e95a63a7d28a678e62d0 to your computer and use it in GitHub Desktop.
Manage chef server self-signed cert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openssl s_client -connect chefserver.com:443 -showcerts 2>/dev/null </dev/null | openssl x509 -outform PEM > /etc/chef/chef_server.pem | |
| chmod 444 /etc/chef_server.pem | |
| cat <<END>>/etc/chef/client.rb | |
| ssl_ca_file '/etc/chef/cheef_server.pem' | |
| END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment