Skip to content

Instantly share code, notes, and snippets.

@mattes
Last active February 27, 2018 22:11
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 mattes/760133261d7367e2be7d238f72550259 to your computer and use it in GitHub Desktop.
Save mattes/760133261d7367e2be7d238f72550259 to your computer and use it in GitHub Desktop.
DOMAIN=example.com
openssl req -new -newkey rsa:2048 -nodes -keyout $DOMAIN.key -out $DOMAIN.csr
cat STAR_$DOMAIN.crt COMODORSADomainValidationSecureServerCA.crt  COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > $DOMAIN.crt
openssl rsa -in $DOMAIN.key -text > $DOMAIN.pem

Ref: https://gist.github.com/bradmontgomery/6487319

openssl s_client -servername example.com -connect example.com:443 </dev/null 2>/dev/null | openssl x509 -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment