mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 02:19:27 +00:00
Fix check in bad-key-revoker to skip SMTP TLS verification (#171)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user