Lines Matching refs:PREFIX
53 PREFIX="${1:-}"
54 if [ -z "$PREFIX" ]; then
58 if [ ! -f "$PREFIX-sv.prm" ]; then
59 echo "No configuration file $PREFIX-sv.prm"
85 echo "PREFIX=$PREFIX CAPREFIX=$CAPREFIX DURATION=$DURATION KEYSIZE=$KEYSIZE"
90 "$OPENSSL" dhparam -2 -out "$PREFIX-sv.dhp" "$KEYSIZE"
93 …"$OPENSSL" req -config "$PREFIX-sv.prm" -newkey "rsa:$KEYSIZE" -keyout "$PREFIX-sv.key" -out "$PRE…
98 "$OPENSSL" rsa -in "$PREFIX-sv.key" -out "$PREFIX-sv.key" -passin fd:0 <<EOF
104 "$OPENSSL" rsa -in "$PREFIX-sv.key" -pubout -outform DER -out "$PREFIX-sv.pub.der"
105 "$OPENSSL" rsa -in "$PREFIX-sv.key" -pubout -outform PEM -out "$PREFIX-sv.pub.pem"
106 …PREFIX-sv.prm" -days "$DURATION" -CA "$CAPREFIX-ca.cacert" -CAkey "$CAPREFIX-ca.key" -CAcreateseri…
109 …SSL" pkcs12 -export -des3 -out "$PREFIX-sv.p12" -caname "$CAPREFIX" -name "$PREFIX" -inkey "$PREFI…
112 "$OPENSSL" x509 -noout -text -hash -in "$PREFIX-sv.crt" -nameopt multiline
117 "$OPENSSL" ca -config "$CAPREFIX-ca.cnf" -revoke "$PREFIX-sv.crt"
120 "$OPENSSL" ca -config "$CAPREFIX-ca.cnf" -gencrl -out "$PREFIX-sv.crl"
122 "$OPENSSL" x509 -in "$PREFIX-sv.crt" -outform der -out "$PREFIX-sv.der"
125 touch "$PREFIX-sv.dhp"
126 cat "$PREFIX-sv.prm" "$PREFIX-sv.key" "$PREFIX-sv.crt" "$PREFIX-sv.dhp" > "$PREFIX-sv.pem"
127 chmod o-r "$PREFIX-sv.prm"
129 "$OPENSSL" x509 -in "$PREFIX-sv.pem" -pubkey -noout | \
131 "$OPENSSL" enc -base64 > "$PREFIX-sv.pubkey-pinned"
133 echo "$PREFIX-sv.pem done"