Skip to content

Commit

Permalink
Revert "Fixes #37828: Ignore system CA trust when verifying certifica…
Browse files Browse the repository at this point in the history
…tes"

This reverts commit 914c3cb because
OpenSSL on EL8 doesn't support the `-no-CApath` option.
  • Loading branch information
ekohl committed Nov 19, 2024
1 parent fcbce90 commit 27e5ded
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 -no-CApath -no-CAstore -CAfile $CA_BUNDLE_FILE -purpose sslserver -verbose $CERT_FILE 2>&1)
CHECK=$(openssl verify -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 27e5ded

Please sign in to comment.