added option to set PKCS#12 alias name
This commit is contained in:
parent
133d7c7843
commit
33acf0db1b
@ -163,8 +163,9 @@ cmd_help() {
|
||||
export-p12 <filename_base> [ cmd-opts ]
|
||||
Export a PKCS#12 file with the keypair specified by <filename_base>"
|
||||
opts="
|
||||
noca - do not include the ca.crt file in the PKCS12 output
|
||||
nokey - do not include the private key in the PKCS12 output" ;;
|
||||
noca - do not include the ca.crt file in the PKCS12 output
|
||||
nokey - do not include the private key in the PKCS12 output
|
||||
usealias - use <filename_base> as friendly name" ;;
|
||||
export-p7) text="
|
||||
export-p7 <filename_base> [ cmd-opts ]
|
||||
Export a PKCS#7 file with the pubkey specified by <filename_base>"
|
||||
@ -1763,6 +1764,7 @@ Run easyrsa without commands for usage and command help."
|
||||
noca) want_ca="" ;;
|
||||
nokey) want_key="" ;;
|
||||
nopass) want_pass="" ;;
|
||||
usealias) pkcs_friendly_name=$short_name ;;
|
||||
*) warn "Ignoring unknown command option: '$1'"
|
||||
esac
|
||||
shift
|
||||
@ -1798,6 +1800,7 @@ Missing key expected at: $key_in"
|
||||
easyrsa_openssl pkcs12 -in "$crt_in" -inkey "$key_in" -export \
|
||||
-out "$pkcs_out" \
|
||||
${nokeys:+ -nokeys} \
|
||||
${pkcs_friendly_name:+ -name "$pkcs_friendly_name"} \
|
||||
${pkcs_certfile_path:+ -certfile "$pkcs_certfile_path"} \
|
||||
${EASYRSA_PASSIN:+ -passin "$EASYRSA_PASSIN"} \
|
||||
${EASYRSA_PASSOUT:+ -passout "$EASYRSA_PASSOUT"} || die "\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user