Skip to content

Instantly share code, notes, and snippets.

@snobu
Created September 11, 2018 10:31
Show Gist options
  • Select an option

  • Save snobu/f2acf3a3d96cc45f96adbdc18e691f9d to your computer and use it in GitHub Desktop.

Select an option

Save snobu/f2acf3a3d96cc45f96adbdc18e691f9d to your computer and use it in GitHub Desktop.
Match private key with public cert
~ $ openssl pkey -in key.pem -pubout -outform pem | openssl md5
(stdin)= 5bxxxxxxxxxxxxxxxxxxx5f9
~ $ openssl x509 -in public-cert.pem -pubkey -noout -outform pem | openssl md5
(stdin)= 5bxxxxxxxxxxxxxxxxxxx5f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment