Zertifikate

Aus crazylinux.de
Zur Navigation springen Zur Suche springen

CONVERT pkcs12 to pem

#!/bin/sh
#
echo "copy your cert to cert.p12 - then run this script"
#
openssl pkcs12 -clcerts -nokeys -in cert.p12 -out usercert.pem
openssl pkcs12 -nocerts -in cert.p12 -out userkey.pem


CONVERT pem to pkcs12

#!/bin/sh
#
echo "Verify that you are using the correct certificate pair (key/cert)"
#
openssl pkcs12 -export -out cert.p12 -inkey ./userkey.pem -in ./usercert.pem


Creating and Using a self signed SSL Certificates in debian

http://www.debian-administration.org/articles/284