Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
openssl [08/04/2025 - 09:43] – [Konvertierung von PEM nach DER] admin | openssl [08/04/2025 - 09:47] (aktuell) – admin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== OPENSSL ====== | ====== OPENSSL ====== | ||
+ | |||
+ | Dokumentation zu openssl siehe [[http:// | ||
===== Schlüssel mit elliptic curve ===== | ===== Schlüssel mit elliptic curve ===== | ||
Zeile 58: | Zeile 60: | ||
< | < | ||
openssl req -new -key radius_rsa.key -out radius.xdc.dev.gspp-eu.corpinter.net_rsa.csr -config openssl.cnf | openssl req -new -key radius_rsa.key -out radius.xdc.dev.gspp-eu.corpinter.net_rsa.csr -config openssl.cnf | ||
- | |||
</ | </ | ||
Zeile 93: | Zeile 94: | ||
</ | </ | ||
- | |||
- | ===== Check: Passen ein key und ein signiertes cert zusammen? ===== | ||
- | |||
- | Replace < | ||
- | |||
- | < | ||
- | openssl x509 -noout -modulus -in < | ||
- | |||
- | openssl rsa -noout -modulus -in < | ||
- | |||
- | </ | ||
- | |||
- | Danach ein diff der beiden Dateien: | ||
- | < | ||
- | |||
- | diff / | ||
- | |||
- | </ | ||
- | |||
- | If nothing is printed to the console, they were found to be a pair. Any differences are printed to the console in detail. | ||
===== Check: Inhalte kontrollieren ===== | ===== Check: Inhalte kontrollieren ===== | ||
Zeile 120: | Zeile 101: | ||
< | < | ||
openssl x509 -text -noout -in ca.crt | openssl x509 -text -noout -in ca.crt | ||
+ | </ | ||
+ | < | ||
openssl req -text -noout -verify -in csr.pem | openssl req -text -noout -verify -in csr.pem | ||
- | |||
</ | </ | ||
- | ===== Revocation list ===== | ||
- | xx | + | ===== Check: Passen ein key und ein signiertes cert zusammen? ===== |
- | ===== Test einer ssl Verbindung mit openssl s_client ===== | + | Replace < |
- | Das Standard-Tool für die Analyse von SSL-Funktionen ist das Kommandozeilenprogramm von OpenSSL. | ||
- | |||
- | https:// | ||
< | < | ||
- | openssl | + | openssl |
</ | </ | ||
- | Kommt als Ergebnis eine Ciphersuite heraus, die mit DH oder ECDH beginnt, haben sich die beiden Kommunikationspartner auf **Forward Secrecy **geeinigt. Ob ein Server überhaupt Forward Secrecy beherrscht, verrät: | ||
< | < | ||
- | openssl | + | openssl |
</ | </ | ||
- | Ob ein Server Diffie-Hellman erzwingt, auch wenn der Client RSA bevorzugt, verrät die cipher-Spezifikation ' | + | Danach |
< | < | ||
- | openssl s_client -starttls smtp -connect smtp.gmx.net:587 | + | diff /tmp/crt.pub /tmp/key.pub |
</ | </ | ||
- | Dokumentation zu openssl siehe auch [[http:// | + | Wenn sich im diff nichts unerscheidet, |
===== Zufalls-Passwort generieren ===== | ===== Zufalls-Passwort generieren ===== | ||
Zeile 157: | Zeile 131: | ||
< | < | ||
openssl rand -base64 | openssl rand -base64 | ||
- | |||
</ | </ | ||
Zeile 307: | Zeile 280: | ||
Zeritifkate konvertieren nur privatebn Schlüssel extrahieren # openssl pkcs12 -in filename.pfx -nocerts -out key.pem Zertifikat exportieren # openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem Diffie hellman Parameter erzeugen openssl dhparam -out dhparams.pem 4096 | Zeritifkate konvertieren nur privatebn Schlüssel extrahieren # openssl pkcs12 -in filename.pfx -nocerts -out key.pem Zertifikat exportieren # openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem Diffie hellman Parameter erzeugen openssl dhparam -out dhparams.pem 4096 | ||
+ | ===== Revocation list ===== | ||
+ | |||
+ | xx | ||
+ | |||
+ | ===== Test einer ssl Verbindung mit openssl s_client ===== | ||
+ | |||
+ | Das Standard-Tool für die Analyse von SSL-Funktionen ist das Kommandozeilenprogramm von OpenSSL. Siehe https:// | ||
+ | |||
+ | < | ||
+ | openssl s_client -connect imap.1und1.de: | ||
+ | </ | ||
+ | |||
+ | Kommt als Ergebnis eine Ciphersuite heraus, die mit DH oder ECDH beginnt, haben sich die beiden Kommunikationspartner auf **Forward Secrecy **geeinigt. Ob ein Server überhaupt Forward Secrecy beherrscht, verrät: | ||
+ | |||
+ | < | ||
+ | openssl s_client -cipher ' | ||
+ | </ | ||
+ | |||
+ | Ob ein Server Diffie-Hellman erzwingt, auch wenn der Client RSA bevorzugt, verrät die cipher-Spezifikation ' | ||
+ | |||
+ | < | ||
+ | openssl s_client -starttls smtp -connect smtp.gmx.net: | ||
+ | </ | ||