Browse Source

one command code per description

Duologic 9 years ago
parent
commit
32e3a52e30
1 changed files with 14 additions and 2 deletions
  1. 14 2
      pages/common/openssl.md

+ 14 - 2
pages/common/openssl.md

@@ -10,14 +10,26 @@
 
 `openssl req -out {{path/to/CSR.csr}} -new -newkey rsa:2048 -nodes -keyout {{path/to/pivate.key}}`
 
-- Read contents of certificate, private key and CSR file
+- Read contents of a certificate
 
 `openssl x509 -text -noout -in {{path/to/certificate.crt}}`
+
+- Read contents of a private key
+
 `openssl rsa -check -in {{path/to/pivate.key}}`
+
+- Verify a CSR file
+
 `openssl req -text -noout -verify -in {{path/to/CSR.csr}}`
 
-- Check if certificate, private key and CSR have the same MD5 hash
+- Check MD5 hash of a certificate
 
 `openssl x509 -noout -modulus -in {{path/to/certificate.crt}} | openssl md5`
+
+- Check MD5 hash of a private key
+
 `openssl rsa -noout -modulus -in {{path/to/pivate.key}} | openssl md5`
+
+- Check MD5 hash of a CSR file
+
 `openssl req -noout -modulus -in {{path/to/CSR.csr}} | openssl md5`