diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-01-28 04:35:31 +0300 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-01-28 04:35:31 +0300 |
commit | 90644dd74d5c5262831bb0be73e1226778099924 (patch) | |
tree | f07259a214d401c86ea41876e2cbe4eb762d394a /apps/CA.pl.in | |
parent | 75b0edaafa5b4333c0e49831a0bce22339871ace (diff) |
New -pkcs12 option to CA.pl.
Document CA.pl script.
Initialise and free up the extra DH fields
(nothing uses them yet though).
Diffstat (limited to 'apps/CA.pl.in')
-rw-r--r-- | apps/CA.pl.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/CA.pl.in b/apps/CA.pl.in index 7c023ae71f..0e0b7fc0bc 100644 --- a/apps/CA.pl.in +++ b/apps/CA.pl.in @@ -41,6 +41,7 @@ $REQ="openssl req $SSLEAY_CONFIG"; $CA="openssl ca $SSLEAY_CONFIG"; $VERIFY="openssl verify"; $X509="openssl x509"; +$PKCS12="openssl pkcs12"; $CATOP="./demoCA"; $CAKEY="cakey.pem"; @@ -99,6 +100,14 @@ foreach (@ARGV) { $RET=$?; } } + } elsif (/^-pkcs12$/) { + my $cname = $ARGV[1]; + $cname = "My Certificate" unless defined $cname; + system ("$PKCS12 -in newcert.pem -inkey newreq.pem " . + "-certfile ${CATOP}/$CACERT -out newcert.p12 " . + "-export -name \"$cname\""); + $RET=$?; + exit $RET; } elsif (/^-xsign$/) { system ("$CA -policy policy_anything -infiles newreq.pem"); $RET=$?; |