~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to apps/CA.pl

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060515160058-pg6lnbkkpkwpdj2e
Tags: upstream-0.9.8b
ImportĀ upstreamĀ versionĀ 0.9.8b

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/local/bin/perl
 
1
#!/usr/bin/perl
2
2
#
3
3
# CA - wrapper around ca to make it easier to use ... basically ca requires
4
4
#      some setup stuff to be done before you can use it and this makes
94
94
                mkdir "${CATOP}/private", $DIRMODE;
95
95
                open OUT, ">${CATOP}/index.txt";
96
96
                close OUT;
 
97
                open OUT, ">${CATOP}/crlnumber";
 
98
                print OUT "01\n";
 
99
                close OUT;
97
100
            }
98
101
            if ( ! -f "${CATOP}/private/$CAKEY" ) {
99
102
                print "CA certificate filename (or enter to create)\n";
113
116
                    system ("$CA -create_serial " .
114
117
                        "-out ${CATOP}/$CACERT $CADAYS -batch " . 
115
118
                        "-keyfile ${CATOP}/private/$CAKEY -selfsign " .
 
119
                        "-extensions v3_ca " .
116
120
                        "-infiles ${CATOP}/$CAREQ ");
117
121
                    $RET=$?;
118
122
                }