X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2FCA.pl.in;h=c783a6e6a541599f81b6055837514cc718496876;hb=c5ea65b157e17743c881b9e348524b0281b3d39f;hp=d97f0ce9c9a9a810a3132ffc074fe7f9194d5b5f;hpb=cb49a3cfa13d029348332a72445f3b1af865c165;p=openssl.git diff --git a/apps/CA.pl.in b/apps/CA.pl.in index d97f0ce9c9..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,7 +116,7 @@ foreach (@ARGV) { system ("$CA -create_serial " . "-out ${CATOP}/$CACERT $CADAYS -batch " . "-keyfile ${CATOP}/private/$CAKEY -selfsign " . - "-extensions v3_ca" . + "-extensions v3_ca " . "-infiles ${CATOP}/$CAREQ "); $RET=$?; }