Squashed commit of the following:
commit d3592f1b6ea69bb93559108ac78c869308a8e2f3
Merge: ec1d428 05d0213
Author: Richard T Bonhomme <tincantech@protonmail.com>
Date: Thu May 11 23:06:20 2023 +0100
Merge branch 'verify-cert-direct-openssl-call' of ssh://github.com/TinCanTech/easy-rsa into TinCanTech-verify-cert-direct-openssl-call
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
commit 05d0213d6dff4706d058442b6e9cddcad1124fbc
Author: Richard T Bonhomme <tincantech@protonmail.com>
Date: Thu May 11 13:35:12 2023 +0100
verify-cert: Call 'openssl' directly to capture error
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
ec1d428c6a
commit
60b5c03541
@ -3810,7 +3810,8 @@ No certificate found for the input: '$crt_in'"
|
||||
Input is not a valid certificate: $crt_in"
|
||||
|
||||
# Test SSL out
|
||||
if easyrsa_openssl verify -CAfile "$ca_crt" \
|
||||
# openssl direct call because error is expected
|
||||
if "$EASYRSA_OPENSSL" verify -CAfile "$ca_crt" \
|
||||
"$crt_in" 1>/dev/null
|
||||
then
|
||||
notice "\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user