Verify SSL Certificate matches Private Key: Difference between revisions
From Leo's Notes
This page was last edited on 1 September 2019, at 06:20.
m Text replacement - "Category:Linux" to "Category:Linux{{Navbox Linux}}" |
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux" |
||
| Line 14: | Line 14: | ||
* https://support.comodo.com/index.php?/Knowledgebase/Article/View/684/17/how-do-i-verify-that-a-private-key-matches-a-certificate-openssl | * https://support.comodo.com/index.php?/Knowledgebase/Article/View/684/17/how-do-i-verify-that-a-private-key-matches-a-certificate-openssl | ||
[[Category:Linux]] | {{Navbox Linux}}[[Category:Linux]] | ||
Revision as of 06:20, 1 September 2019
When given a private key and a signed SSL certificate, to validate whether the private key matches that of the certificate:
# openssl x509 -modulus -noout -in server.crt
Modulus=BEF773CAF4790...
# openssl rsa -modulus -noout -in server.key
Modulus=BEF773CAF4790...
If the two modulus matches, the private key is for the certificate.