diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 1d1a0b7..1f2b7b0 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -163,8 +163,9 @@ cmd_help() { export-p12 [ cmd-opts ] Export a PKCS#12 file with the keypair specified by " 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 as friendly name" ;; export-p7) text=" export-p7 [ cmd-opts ] Export a PKCS#7 file with the pubkey specified by " @@ -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 "\