kb:cheatsheet:openssl
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
kb:cheatsheet:openssl [2018/08/28 22:35] – créée beu | kb:cheatsheet:openssl [2019/12/21 18:08] (Version actuelle) – beu | ||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
</ | </ | ||
- | Vérification d'une clé privée | + | Vérification d'une clé privée |
<code bash> | <code bash> | ||
# openssl rsa -in private.key -check | # openssl rsa -in private.key -check | ||
+ | </ | ||
+ | |||
+ | Verification d'une clé privée EC | ||
+ | |||
+ | <code bash> | ||
+ | # openssl ec -in private.key -check | ||
</ | </ | ||
Ligne 19: | Ligne 25: | ||
# openssl x509 -in certificate.crt -text -noout | # openssl x509 -in certificate.crt -text -noout | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
Vérification d'un fichier PKCS#12 (.pfx ou .p12) | Vérification d'un fichier PKCS#12 (.pfx ou .p12) | ||
Ligne 26: | Ligne 35: | ||
</ | </ | ||
- | Vérification d'un certificat distant | + | Vérification d'un certificat distant |
<code bash> | <code bash> | ||
Ligne 35: | Ligne 44: | ||
<code bash> | <code bash> | ||
- | # openssl s_client -showcerts | + | # openssl s_client -showcerts -connect $IP_ou_FQDN_du_server: |
</ | </ | ||
+ | |||
+ | ====Génération d'un certificat auto-signé==== | ||
+ | |||
+ | <code bash> | ||
+ | # openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes | ||
+ | </ | ||
+ | |||
+ | Sinon, vous pouvez créer votre CA avec [[kb: |
kb/cheatsheet/openssl.1535495722.txt.gz · Dernière modification : de beu