Export PKCS: export-p1, use -traditional not -legacy

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-07-26 11:09:38 +01:00
parent d832d206d8
commit a8083fdbf3
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1118,7 +1118,7 @@ easyrsa_openssl: No Safe SSL conf, FALLBACK to default"
"$EASYRSA_OPENSSL" "$openssl_command" "$@" && \
return
fi
set +x
# Always fail here
die "\
easyrsa_openssl - Command has failed:
@ -3909,16 +3909,16 @@ Missing User Certificate, expected at:
die "export_pkcs.p1: verify_ssl_lib_ok FAIL"
if [ "$openssl_v3" ]; then
legacy=-legacy
traditional=-traditional
else
unset -v legacy
unset -v traditional
fi
# export the p1:
easyrsa_openssl rsa \
-in "$key_in" \
-out "$pkcs_out" \
${legacy} \
${traditional} \
${cipher} \
${EASYRSA_PASSIN:+ -passin "$EASYRSA_PASSIN"} \
${EASYRSA_PASSOUT:+ -passout "$EASYRSA_PASSOUT"} \