Skip to content

Instantly share code, notes, and snippets.

@pburkholder
Created May 13, 2015 16:05
Show Gist options
  • Select an option

  • Save pburkholder/e95a63a7d28a678e62d0 to your computer and use it in GitHub Desktop.

Select an option

Save pburkholder/e95a63a7d28a678e62d0 to your computer and use it in GitHub Desktop.
Manage chef server self-signed cert
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