X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2FCA.pl.in;h=c783a6e6a541599f81b6055837514cc718496876;hb=c5ea65b157e17743c881b9e348524b0281b3d39f;hp=8ef8ac1c83c368d8391a006fdb4b50278186462f;hpb=d2e0c81720c2168d27418438095e1f6fa11e3936;p=openssl.git diff --git a/apps/CA.pl.in b/apps/CA.pl.in index 8ef8ac1c83..c783a6e6a5 100644 --- a/apps/CA.pl.in +++ b/apps/CA.pl.in @@ -94,6 +94,9 @@ foreach (@ARGV) { mkdir "${CATOP}/private", $DIRMODE; open OUT, ">${CATOP}/index.txt"; close OUT; + open OUT, ">${CATOP}/crlnumber"; + print OUT "01\n"; + close OUT; } if ( ! -f "${CATOP}/private/$CAKEY" ) { print "CA certificate filename (or enter to create)\n"; @@ -113,6 +116,7 @@ foreach (@ARGV) { system ("$CA -create_serial " . "-out ${CATOP}/$CACERT $CADAYS -batch " . "-keyfile ${CATOP}/private/$CAKEY -selfsign " . + "-extensions v3_ca " . "-infiles ${CATOP}/$CAREQ "); $RET=$?; }