Openssl: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase title}} | {{lowercase title}} | ||
Read a certificate | == Create a Certificate Signing Request (CSR) == | ||
<pre> | |||
openssl req -sha256 -newkey rsa:4096 -nodes -keyout my_server.key -out my_server.csr | |||
</pre> | |||
== Read a certificate == | |||
<pre> | <pre> | ||
openssl x509 -noout -text -in yourcert.cert | openssl x509 -noout -text -in yourcert.cert | ||
Line 7: | Line 12: | ||
The Issuer should be the Certificate Authority. The Subject should represent the organization behind the server. | The Issuer should be the Certificate Authority. The Subject should represent the organization behind the server. | ||
== Check a certificate == | |||
These commands should match for a certificate/private key pair: | These commands should match for a certificate/private key pair: | ||
<pre> | <pre> | ||
Line 15: | Line 20: | ||
</pre> | </pre> | ||
Additional wisdom here: | == InCommon SSL == | ||
Download this one: "Certificate only, PEM encoded" | |||
== Additional wisdom here == | |||
https://www.digitalocean.com/community/tutorials/openssl-essentials-working-with-ssl-certificates-private-keys-and-csrs | |||
http://stackoverflow.com/questions/26191463/ssl-error0b080074x509-certificate-routinesx509-check-private-keykey-values | http://stackoverflow.com/questions/26191463/ssl-error0b080074x509-certificate-routinesx509-check-private-keykey-values |
Latest revision as of 16:25, 27 October 2023
Create a Certificate Signing Request (CSR)
openssl req -sha256 -newkey rsa:4096 -nodes -keyout my_server.key -out my_server.csr
Read a certificate
openssl x509 -noout -text -in yourcert.cert
The Issuer should be the Certificate Authority. The Subject should represent the organization behind the server.
Check a certificate
These commands should match for a certificate/private key pair:
openssl x509 -noout -modulus -in certificate.crt | openssl md5 openssl rsa -noout -modulus -in privateKey.key | openssl md5
InCommon SSL
Download this one: "Certificate only, PEM encoded"