Lines Matching +full:- +full:- +full:prefix
22 # SPDX-License-Identifier: curl
27 set -eu
30 if [ -f /usr/local/ssl/bin/openssl ]; then
41 # The -sha256 option was introduced in OpenSSL 1.0.1
42 DIGESTALGO=-sha256
46 PREFIX="${1:-}"
47 if [ -z "$PREFIX" ]; then
48 echo 'No configuration prefix'
51 if [ ! -f "$PREFIX-ca.prm" ]; then
52 echo "No configuration file $PREFIX-ca.prm"
57 if [ -n "$NOTOK" ]; then
63 SERIAL="$(date +'%s')${RANDOM:(-4)}"
65 echo "SERIAL=$SERIAL PREFIX=$PREFIX DURATION=$DURATION KEYSIZE=$KEYSIZE"
67 set -x
69 "$OPENSSL" genrsa -out "$PREFIX-ca.key" -passout fd:0 "$KEYSIZE" <<EOF
72 "$OPENSSL" req -config "$PREFIX-ca.prm" -new -key "$PREFIX-ca.key" -out "$PREFIX-ca.csr" -passin fd…
75 … x509 -set_serial "$SERIAL" -extfile "$PREFIX-ca.prm" -days "$DURATION" -req -signkey "$PREFIX-ca.…
76 "$OPENSSL" x509 -text -in "$PREFIX-$SERIAL-ca.cacert" -nameopt multiline > "$PREFIX-ca.cacert"
77 "$OPENSSL" x509 -in "$PREFIX-ca.cacert" -outform der -out "$PREFIX-ca.der"
78 "$OPENSSL" x509 -in "$PREFIX-ca.cacert" -text -nameopt multiline > "$PREFIX-ca.crt"
79 "$OPENSSL" x509 -noout -text -in "$PREFIX-ca.cacert" -nameopt multiline
80 # "$OPENSSL" rsa -in "../keys/$PREFIX-ca.key" -text -noout -pubout