Skip to content

Commit 346a291

Browse files
committed
releasing v0.2.29
1 parent 41a9b08 commit 346a291

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/ssl/ssl.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,12 @@ ssl.is_cert_trusted() {
508508
rm -f "$temp_trust_file"
509509
error.throw "Failed to export trust settings - cannot determine trust status" 1
510510
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
511517

512518
# Filter trust settings for fingerprint key or integer 1/3
513519
local filtered

0 commit comments

Comments
 (0)