Lines Matching +full:- +full:- +full:prefix
3 # (c) CopyRight EdelWeb for EdelKey and OpenEvidence, 2000-2004, 2009
9 if [ -f /usr/local/ssl/bin/openssl ] ; then
20 # The -sha256 option was introduced in OpenSSL 1.0.1
21 DIGESTALGO=-sha256
23 PREFIX=$1
24 if [ ".$PREFIX" = . ] ; then
25 echo No configuration prefix
28 if [ ! -f $PREFIX-ca.prm ] ; then
29 echo No configuration file $PREFIX-ca.prm
40 GETSERIAL="\$t = time ;\$d = \$t . substr(\$t+$$ ,-4,4)-1;print \$d"
41 SERIAL=`/usr/bin/env perl -e "$GETSERIAL"`
43 echo SERIAL=$SERIAL PREFIX=$PREFIX DURATION=$DURATION KEYSIZE=$KEYSIZE
45 echo "openssl genrsa -out $PREFIX-ca.key $KEYSIZE -passout XXX"
46 openssl genrsa -out $PREFIX-ca.key $KEYSIZE -passout pass:secret
48 echo "openssl req -config $PREFIX-ca.prm -new -key $PREFIX-ca.key -out $PREFIX-ca.csr"
49 $OPENSSL req -config $PREFIX-ca.prm -new -key $PREFIX-ca.key -out $PREFIX-ca.csr -passin pass:secret
51 …nssl x509 -set_serial $SERIAL -extfile $PREFIX-ca.prm -days $DURATION -req -signkey $PREFIX-ca.key…
53 …ENSSL x509 -set_serial $SERIAL -extfile $PREFIX-ca.prm -days $DURATION -req -signkey $PREFIX-ca.k…
55 echo "openssl x509 -text -in $PREFIX-$SERIAL-ca.cacert -nameopt multiline > $PREFIX-ca.cacert "
56 $OPENSSL x509 -text -in $PREFIX-$SERIAL-ca.cacert -nameopt multiline > $PREFIX-ca.cacert
58 echo "openssl x509 -in $PREFIX-ca.cacert -outform der -out $PREFIX-ca.der "
59 $OPENSSL x509 -in $PREFIX-ca.cacert -outform der -out $PREFIX-ca.der
61 echo "openssl x509 -in $PREFIX-ca.cacert -text -nameopt multiline > $PREFIX-ca.crt "
63 $OPENSSL x509 -in $PREFIX-ca.cacert -text -nameopt multiline > $PREFIX-ca.crt
65 echo "openssl x509 -noout -text -in $PREFIX-ca.cacert -nameopt multiline"
66 $OPENSSL x509 -noout -text -in $PREFIX-ca.cacert -nameopt multiline
68 #$OPENSSL rsa -in ../keys/$PREFIX-ca.key -text -noout -pubout