openssl: add subcommand pages (#4886)

This commit is contained in:
Mat
2020-10-28 20:03:16 +01:00
committed by GitHub
parent c84a806560
commit 5819677893
4 changed files with 54 additions and 26 deletions

View File

@@ -0,0 +1,20 @@
# openssl x509
> OpenSSL command to manage X.509 certificates.
> More information: <https://www.openssl.org/docs/manmaster/man1/openssl-x509.html>.
- Display certificate information:
`openssl x509 -in {{filename.crt}} -noout -text`
- Display a certificate's expiration date:
`openssl x509 -enddate -noout -in {{filename.pem}}`
- Convert a certificate between binary DER encoding and textual PEM encoding:
`openssl x509 -inform {{der}} -outform {{pem}} -in {{original_certificate_file}} -out {{converted_certificate_file}}`
- Store a certificate's public key in a file:
`openssl x509 -in {{certificate_file}} -noout -pubkey -out {{output_file}}`