mirror of https://github.com/CrimsonTome/tldr.git
openssl: linting
parent
2de6aa5038
commit
21c9dcc633
|
@ -2,34 +2,34 @@
|
||||||
|
|
||||||
> OpenSSL is a cryptography toolkit.
|
> OpenSSL is a cryptography toolkit.
|
||||||
|
|
||||||
- Check an SSL connection
|
- Check an SSL connection:
|
||||||
|
|
||||||
`openssl s_client -connect {{domain}}:{{port}}`
|
`openssl s_client -connect {{domain}}:{{port}}`
|
||||||
|
|
||||||
- Generate new private key and CSR
|
- Generate new private key and CSR:
|
||||||
|
|
||||||
`openssl req -out {{path/to/CSR.csr}} -new -newkey rsa:2048 -nodes -keyout {{path/to/pivate.key}}`
|
`openssl req -out {{path/to/CSR.csr}} -new -newkey rsa:2048 -nodes -keyout {{path/to/pivate.key}}`
|
||||||
|
|
||||||
- Read contents of a certificate
|
- Read contents of a certificate:
|
||||||
|
|
||||||
`openssl x509 -text -noout -in {{path/to/certificate.crt}}`
|
`openssl x509 -text -noout -in {{path/to/certificate.crt}}`
|
||||||
|
|
||||||
- Read contents of a private key
|
- Read contents of a private key:
|
||||||
|
|
||||||
`openssl rsa -check -in {{path/to/pivate.key}}`
|
`openssl rsa -check -in {{path/to/pivate.key}}`
|
||||||
|
|
||||||
- Verify a CSR file
|
- Verify a CSR file:
|
||||||
|
|
||||||
`openssl req -text -noout -verify -in {{path/to/CSR.csr}}`
|
`openssl req -text -noout -verify -in {{path/to/CSR.csr}}`
|
||||||
|
|
||||||
- Check MD5 hash of a certificate
|
- Check MD5 hash of a certificate:
|
||||||
|
|
||||||
`openssl x509 -noout -modulus -in {{path/to/certificate.crt}} | openssl md5`
|
`openssl x509 -noout -modulus -in {{path/to/certificate.crt}} | openssl md5`
|
||||||
|
|
||||||
- Check MD5 hash of a private key
|
- Check MD5 hash of a private key:
|
||||||
|
|
||||||
`openssl rsa -noout -modulus -in {{path/to/pivate.key}} | openssl md5`
|
`openssl rsa -noout -modulus -in {{path/to/pivate.key}} | openssl md5`
|
||||||
|
|
||||||
- Check MD5 hash of a CSR file
|
- Check MD5 hash of a CSR file:
|
||||||
|
|
||||||
`openssl req -noout -modulus -in {{path/to/CSR.csr}} | openssl md5`
|
`openssl req -noout -modulus -in {{path/to/CSR.csr}} | openssl md5`
|
||||||
|
|
Loading…
Reference in New Issue