« Openssl cheatsheet » : différence entre les versions

Aller à la navigation Aller à la recherche
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 22 : Ligne 22 :
<pre>openssl rsa -noout -text -in <key file></pre>
<pre>openssl rsa -noout -text -in <key file></pre>
* Signing request :
* Signing request :
<pre>openssl req -noout -text in <csr file></pre>
<pre>openssl req -noout -text -in <csr file></pre>
* Public key :
* Public key :
<pre>openssl x509 -noout -text -in <crt/pem file></pre>
<pre>openssl x509 -noout -text -in <crt/pem file></pre>
Ligne 30 : Ligne 30 :
openssl x509 -noout -modulus -in server.pem | openssl md5 ;\
openssl x509 -noout -modulus -in server.pem | openssl md5 ;\
openssl rsa -noout -modulus -in server.key | openssl md5
openssl rsa -noout -modulus -in server.key | openssl md5
</pre>
=fingerprints=
* SHA-1
<pre>openssl x509 -noout -fingerprint -sha1 -inform pem -in <crt/pem file></pre>
* SHA-256
<pre>openssl x509 -noout -fingerprint -sha256 -inform pem -in <crt/pem file></pre>
=Create ECDSA key=
<pre>
openssl ecparam -genkey -name secp521r1 -noout -out private/eckey.key
openssl ec -in private/eckey.key -pubout -out certs/eckey.pem
</pre>
</pre>