Skip to content

Commit 7dcfc9c

Browse files
committed
pkcs12-verify: show hint on failure
1 parent dc335b9 commit 7dcfc9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extras/pkcs12-functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pkcs12-verify() {
2727

2828
# Extract certificate and chain from PFX file
2929
openssl pkcs12 $BMA_PKCS12_ARGS -in "$pfx_file" -nodes -passin "pass:${pfx_pass:?}" |
30-
openssl x509 -noout -issuer -subject -dates || return 1
30+
openssl x509 -noout -issuer -subject -dates || echo >&2 "Set the following if using unsupported algorithm 'RC2-40-CBC': BMA_PKCS12_ARGS='-legacy'" && return 1
3131

3232
cat "$pfx_file" | pkcs12-cert "$pfx_pass" > "$cert_file"
3333
cat "$pfx_file" | pkcs12-chain "$pfx_pass" > "$chain_file"

0 commit comments

Comments
 (0)