Differences between revisions 2 and 3
Revision 2 as of 2008-05-08 13:16:22
Size: 1010
Editor: RainerSigl
Comment:
Revision 3 as of 2008-05-08 14:01:15
Size: 1216
Editor: RainerSigl
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
/etc/ssl/private# openssl s_client -connect <host>:443 -showcerts openssl s_client -connect <host>:443 -showcerts
Line 37: Line 37:
wandelt PKCS7 Format in pem-Format
Line 38: Line 39:
{{{
Line 39: Line 41:
}}}
Line 40: Line 43:
pkcs12 -inkey ../Antrag/mpemailkey.pem -in cert-203613067.pem -out cert-203613067.p12 -export -name "MPEMail" Wandelt ein vom DFN ausgestelltes Server-Zertifikat mittels des lokalen Schluessels in ein PKCS12-File um, aus welchem Private und Public Keys gewonnen werden koennen.

{{{
pkcs12 -inkey <antrags-key>.pem -in <certificate>.pem -out <certificate>.p12 -export -name "irgendeintext"
}}}

Nuetzliche Befehle mit openssl

Kontrolle der installierten Zertifikate entsprechend der Port-Nummer

openssl s_client -connect <host>:443 -showcerts

c_rehash

Extrahiere Public key aus Zertifikat in PKCS12-Form

openssl pkcs12 -in <certificate>.p12 -out <certificate>.pem -clcerts -nokeys

Extrahiere Private key aus Zertifikat in PKCS12-Form (Das Password im Private Key bleibt erhalten!)

openssl pkcs12 -in <certificate>.p12 -out <certificate>-pw-key.pem -nocerts

Bei Bedarf das Password aus dem Private Key entfernen (Vorsicht!!!)

 openssl rsa -in <certificate>-pw-key.pem -out <certificate>-key.pem

Listet Zertifikat in Text-Form

openssl x509 -in <certificate>.pem -noout -text

wandelt PKCS7 Format in pem-Format

openssl pkcs7 -in tacar_certs.pem -outform pem -out tacar_certsout.pem -print_certs

Wandelt ein vom DFN ausgestelltes Server-Zertifikat mittels des lokalen Schluessels in ein PKCS12-File um, aus welchem Private und Public Keys gewonnen werden koennen.

pkcs12 -inkey <antrags-key>.pem -in <certificate>.pem -out <certificate>.p12 -export -name "irgendeintext"

IT: NuetzlicheBefehle (last edited 2009-07-15 14:34:35 by localhost)