Am 07.11.2015 um 19:40 schrieb Louie Bacani Foronda:
How to fix this, is there a way to not verify the certificate?
Connecting TLS tunnel: error:14090086:SSL routines:SSL3GETSERVER_CERTIFICATE:certificate verify failed (336134278)
You can modify the TSLContext
like this:
auto settings = new SMTPClientSettings;
// ...
settings.tlsContextSetup = (scope ctx) {
ctx.peerValidationMode = TLSPeerValidationMode.none;
};
sendMail(settings, ...);
Instead of TLSPeerValidationMode.checkPeer
might also work and is a
little safer. Alternatively, ctx.useTrustedCertificateFile(...)
can be
used to register the appropriate root authority.