OpenSSL Verifying Certificate Keys: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== Verify Private Key File == # To verify the md5 checksum of the private key. ## <tt>'''# openssl rsa -noout -modulus -in <privatekey.key> | openssl md5'''</tt> == Verify ce...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Verify Private Key File ==
== Verify Private Key File ==
# To verify the md5 checksum of the private key.
# To verify the md5 checksum of the private key.
## <tt>'''# openssl rsa -noout -modulus -in <privatekey.key> | openssl md5'''</tt>
## <tt>'''# openssl rsa -noout -modulus -in <key_name>.key | openssl md5'''</tt>


== Verify certificate signing request file ==
== Verify certificate signing request file ==
# To verify the md5 checksum of the CSR.
# To verify the md5 checksum of the CSR.
## <tt>'''# openssl req -noout -modulus -in <CSR.csr> | openssl md5'''</tt>
## <tt>'''# openssl req -noout -modulus -in <csr_name>.csr | openssl md5'''</tt>


== Verify the generated signed certificate file ==
== Verify the generated signed certificate file ==
# To verify the md5 checksum of the certificate file.
# To verify the md5 checksum of the certificate file.
## <tt>'''# openssl x509 -noout -modulus -in <certificate.crt> | openssl md5'''</tt>
## <tt>'''# openssl x509 -noout -modulus -in <crt_name>.crt | openssl md5'''</tt>


== Further Reading ==
== Further Reading ==
# [https://www.sslshopper.com/certificate-key-matcher.html Certificate Key Matcher]
# [https://www.sslshopper.com/certificate-key-matcher.html Certificate Key Matcher]


[[Category:Software]]
[[Category:SSL]]
[[Category:SSL]]

Latest revision as of 18:43, 21 February 2013

Verify Private Key File

  1. To verify the md5 checksum of the private key.
    1. # openssl rsa -noout -modulus -in <key_name>.key | openssl md5

Verify certificate signing request file

  1. To verify the md5 checksum of the CSR.
    1. # openssl req -noout -modulus -in <csr_name>.csr | openssl md5

Verify the generated signed certificate file

  1. To verify the md5 checksum of the certificate file.
    1. # openssl x509 -noout -modulus -in <crt_name>.crt | openssl md5

Further Reading

  1. Certificate Key Matcher