Skip to content

Instantly share code, notes, and snippets.

@sandys
Last active January 3, 2017 08:41
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 sandys/96534bec91fe97728f8c3c24f606c9b0 to your computer and use it in GitHub Desktop.
Save sandys/96534bec91fe97728f8c3c24f606c9b0 to your computer and use it in GitHub Desktop.
working with public key and CSR

##SHA256 hash of the public key openssl req -in namecheap-1549141.csr -noout -pubkey | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64 ##will match openssl s_client -connect api.redcarpetup.com:443 | openssl x509 -pubkey -noout | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64

##modulus to check in browser openssl req -in namecheap-1549141.csr -noout -modulus ##will match openssl s_client -connect api.redcarpetup.com:443 | openssl x509 -pubkey -noout | openssl rsa -pubin -noout -modulus

#general info about CSR openssl req -in namecheap-1549141.csr -noout -text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment