summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-04-28 00:28:51 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-04-28 00:28:51 +0000
commit6300c14248c35da8d31c6575a345ccf8bf41e378 (patch)
treee2a42745952da5a458a828f1372ce081a1cc8c2d /apps
parentd4426e79a7e576dfdccd0c03a498441ef8d3e89a (diff)
Create a crlnumber file when a CA is created using CA.pl
Diffstat (limited to 'apps')
-rw-r--r--apps/CA.pl.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/CA.pl.in b/apps/CA.pl.in
index f8170f81ba..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";