3 if [ -z "$filename" ]; then
4 echo This script needs a base portion for the certificate filename to create.
7 echo would create DrakeKey.pem and DrakeKey.pfx.
12 openssl req -x509 -nodes -days 3650 \
13 -newkey rsa:1024 -keyout ${filename}.pem -out ${filename}.pem
16 openssl pkcs12 -export -out ${filename}.pfx -in ${filename}.pem -name "Drake Container Certificate"
18 # export the PFX to a certificate file. this can be given to other folks.
19 openssl x509 -inform pem -in ${filename}.pem -outform der -out ${filename}.cer