From 46a94695db86a6bf47d53a5a937b7226f2e88e60 Mon Sep 17 00:00:00 2001 From: Arjan H Date: Thu, 3 Apr 2025 19:50:18 +0200 Subject: [PATCH] Fix check in bad-key-revoker to skip SMTP TLS verification (#171) --- patches/bad-key-revoker_main.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/bad-key-revoker_main.patch b/patches/bad-key-revoker_main.patch index 1456662..2e8011b 100644 --- a/patches/bad-key-revoker_main.patch +++ b/patches/bad-key-revoker_main.patch @@ -53,7 +53,7 @@ index c333b88c3..839437c4e 100644 var smtpRoots *x509.CertPool - if config.BadKeyRevoker.Mailer.SMTPTrustedRootFile != "" { + smtpSkipVerify := false -+ if config.BadKeyRevoker.Mailer.SMTPTrustedRootFile == "skipVerify" { ++ if config.BadKeyRevoker.Mailer.SMTPTrustedRootFile == "InsecureSkipVerify" { + smtpSkipVerify = true + } else if config.BadKeyRevoker.Mailer.SMTPTrustedRootFile != "" { pem, err := os.ReadFile(config.BadKeyRevoker.Mailer.SMTPTrustedRootFile)