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