mirror of
https://github.com/ViViDboarder/bitwarden_rs.git
synced 2024-11-21 20:56:37 +00:00
Add support for insecure certs for SMTPS
This commit is contained in:
parent
026f9da035
commit
c50a90a1f2
@ -345,6 +345,8 @@ make_config! {
|
||||
smtp_username: String, true, option;
|
||||
/// Password
|
||||
smtp_password: Pass, true, option;
|
||||
/// Accept invalid certificates
|
||||
smtp_ssl_insecure: bool, true, def, false;
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ fn mailer() -> SmtpTransport {
|
||||
let client_security = if CONFIG.smtp_ssl() {
|
||||
let tls = TlsConnector::builder()
|
||||
.min_protocol_version(Some(Protocol::Tlsv11))
|
||||
.danger_accept_invalid_certs(CONFIG.smtp_ssl_insecure())
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user