diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2000-11-13 01:03:58 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2000-11-13 01:03:58 +0000 |
| commit | ddd58736f08d9acef3606719eba2e38ed611705b (patch) | |
| tree | 258f64877cac3711a3434257baddcbae72af2af3 /crypto/openssl/apps/CA.pl | |
| parent | 07c567b8ec177822ff1b6e4929662b317ba137b5 (diff) | |
Notes
Diffstat (limited to 'crypto/openssl/apps/CA.pl')
| -rwxr-xr-x | crypto/openssl/apps/CA.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/openssl/apps/CA.pl b/crypto/openssl/apps/CA.pl index 4eef57e6e3919..f1ac7e772690c 100755 --- a/crypto/openssl/apps/CA.pl +++ b/crypto/openssl/apps/CA.pl @@ -36,6 +36,7 @@ # default openssl.cnf file has setup as per the following # demoCA ... where everything is stored +$SSLEAY_CONFIG=$ENV{"SSLEAY_CONFIG"}; $DAYS="-days 365"; $REQ="openssl req $SSLEAY_CONFIG"; $CA="openssl ca $SSLEAY_CONFIG"; @@ -116,6 +117,11 @@ foreach (@ARGV) { "-infiles newreq.pem"); $RET=$?; print "Signed certificate is in newcert.pem\n"; + } elsif (/^(-signCA)$/) { + system ("$CA -policy policy_anything -out newcert.pem " . + "-extensions v3_ca -infiles newreq.pem"); + $RET=$?; + print "Signed CA certificate is in newcert.pem\n"; } elsif (/^-signcert$/) { system ("$X509 -x509toreq -in newreq.pem -signkey newreq.pem " . "-out tmp.pem"); |
