Skip to content

Instantly share code, notes, and snippets.

@larryebaum
Created October 3, 2017 14:44
Show Gist options
  • Save larryebaum/e02262ba850a724bd612f3406d94e88a to your computer and use it in GitHub Desktop.
Save larryebaum/e02262ba850a724bd612f3406d94e88a to your computer and use it in GitHub Desktop.
Chef Automate Supermarket Cert Append for SSL Issue with Self Signed Cert
# on Supermarket server
sudo su -
echo "\nSelf-Signed Chef Server Cert (you should feel bad about this)\n=====================" >> /opt/supermarket/embedded/ssl/certs/cacert.pem
openssl s_client -showcerts -connect phl-du-cfbc1.devfwh.lan:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >> /opt/supermarket/embedded/ssl/certs/cacert.pem
# on Chef Server
sudo su -
echo "\nSelf-Signed Supermarket Cert (you should feel bad about this)\n=====================" >> /opt/opscode/embedded/ssl/certs/cacert.pem
openssl s_client -showcerts -connect phl-du-cfsm1.devfwh.lan:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >> /opt/opscode/embedded/ssl/certs/cacert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment