Skip to content

Commit

Permalink
Fixes #37828: Ignore system CA trust when verifying certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Sep 17, 2024
1 parent bf58fd3 commit bb2341b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/katello-certs-check
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function check-priv-key () {
function check-ca-bundle () {
printf "Checking CA bundle against the certificate file: "
ERROR_PATTERN="error [0-9]+ at"
CHECK=$(openssl verify -CAfile $CA_BUNDLE_FILE -purpose sslserver -verbose $CERT_FILE 2>&1)
CHECK=$(openssl verify -no-CApath -no-CAstore -CAfile $CA_BUNDLE_FILE -purpose sslserver -verbose $CERT_FILE 2>&1)
CHECK_STATUS=$?

if [[ $CHECK_STATUS != "0" || $CHECK =~ $ERROR_PATTERN ]]; then
Expand Down

0 comments on commit bb2341b

Please sign in to comment.