Skip to content

Instantly share code, notes, and snippets.

@elnygren
Last active January 24, 2017 11:39
Show Gist options
  • Save elnygren/de154638a776858ca60166300caa060e to your computer and use it in GitHub Desktop.
Save elnygren/de154638a776858ca60166300caa060e to your computer and use it in GitHub Desktop.
Open SSL tips
# verify SSL of a running system on Heroku, AWS etc. before pointing DNS there
openssl s_client -connect domain.com.somedns.com:443 -servername www.example.com
# verify a chain before uploading
certs openssl verify chain.cer
> chain.cer: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA
> error 18 at 0 depth lookup:self signed certificate # this is expected
> OK # we're ok!
# creating a cert chain
cat TrustedRoot.cer DigiCertCA2.cer yourdomain.cer > chain.cer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment