We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41a9b08 commit 346a291Copy full SHA for 346a291
src/main/ssl/ssl.sh
@@ -508,6 +508,12 @@ ssl.is_cert_trusted() {
508
rm -f "$temp_trust_file"
509
error.throw "Failed to export trust settings - cannot determine trust status" 1
510
fi
511
+
512
+ # Check if the cert fingerprint exists in the exported trust settings
513
+ if ! grep -q "key>$cert_fingerprint" "$temp_trust_file"; then
514
+ rm -f "$temp_trust_file"
515
+ return 1 # Fingerprint not found; not trusted
516
+ fi
517
518
# Filter trust settings for fingerprint key or integer 1/3
519
local filtered
0 commit comments