New options to the -verify program which can be used for chain verification.
[openssl.git] / apps / CA.pl
index 7f71f4a76824e3400642ef1f6a68eff668737cc5..7c023ae71f66c5b3ccc91afb1f40341511cb9e1c 100755 (executable)
 # Steve Henson
 # shenson@bigfoot.com
 
-# default ssleay.cnf file has setup as per the following
+# default openssl.cnf file has setup as per the following
 # demoCA ... where everything is stored
 
 $DAYS="-days 365";
-$REQ="ssleay req $SSLEAY_CONFIG";
-$CA="ssleay ca $SSLEAY_CONFIG";
-$VERIFY="ssleay verify";
-$X509="ssleay x509";
+$REQ="openssl req $SSLEAY_CONFIG";
+$CA="openssl ca $SSLEAY_CONFIG";
+$VERIFY="openssl verify";
+$X509="openssl x509";
 
 $CATOP="./demoCA";
 $CAKEY="cakey.pem";
@@ -68,7 +68,7 @@ foreach (@ARGV) {
                # if explictly asked for or it doesn't exist then setup the
                # directory structure that Eric likes to manage things 
            $NEW="1";
-           if ( "$NEW" || ! -f ${CATOP}/serial ) {
+           if ( "$NEW" || ! -f "${CATOP}/serial" ) {
                # create the directory hierarchy
                mkdir $CATOP, $DIRMODE;
                mkdir "${CATOP}/certs", $DIRMODE;