ssl handshake failure
See original GitHub issueWhen receiving email from Yahoo I get this error message:
error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/s3_pkt.c:1493:SSL alert number 46
140050183874432:error:140940E5:SSL routines:ssl3_read_bytes:ssl handshake failure:../deps/openssl/openssl/ssl/s3_pkt.c:1216:
at Error (native)
events.js:165
throw err;
^
Error: Uncaught, unspecified "error" event. (undefined)
at Mailin.emit (events.js:163:17)
at SMTPServer.<anonymous> (/home/arash/.npm-global/lib/node_modules/mailin/lib/mailin.js:519:15)
at emitOne (events.js:96:13)
at SMTPServer.emit (events.js:188:7)
at SMTPServer._onError (/home/arash/.npm-global/lib/node_modules/mailin/node_modules/smtp-server/lib/smtp-server.js:237:10)
at emitOne (events.js:96:13)
at SMTPConnection.emit (events.js:188:7)
at SMTPConnection._onError (/home/arash/.npm-global/lib/node_modules/mailin/node_modules/smtp-server/lib/smtp-connection.js:274:10)
at emitOne (events.js:101:20)
at TLSSocket.emit (events.js:188:7)
at emitErrorNT (net.js:1277:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
warn: It is likely that an error caused Mailin to crash.
warn: Please report this to https://github.com/Flolagale/mailin/issues
Ubuntu 14.04
OpenSSL 1.0.2k 26 Jan 2017
mailin version: 3.0.4
certificates are updated (apt-get install ca-certificates
)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9
Top Results From Across the Web
What Is SSL Handshake & How Do I Fix SSL ... - HubSpot Blog
SSL Handshake Failed is an error message that occurs when the client or server wasn't able to establish a secure connection.
Read more >How to Fix “SSL Handshake Failed” & "Cloudflare 525" Error
An SSL Handshake Failure or Error 525 means that the server and browser were unable to establish a secure connection. This can happen...
Read more >How to Fix the “SSL Handshake Failed” Error? - ClickSSL
An SSL handshake error, also known as error 525 occurs when the two endpoints (server and client) are unable to establish a secure...
Read more >SSL Handshake Failures - Baeldung
5. Handshake Failure Scenarios · 5.1. Missing Server Certificate · 5.2. Untrusted Server Certificate · 5.3. Missing Client Certificate · 5.4.
Read more >SSL Handshake Failed Error — Ultimate Guide by Experts
The SSL Handshake Error occurs if the read access has not been granted to the OS, thus preventing the web server from completing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed the issue by adding valid (could be self signed) certificate to mailin config:
My certificates are signed with LetsEncrypt. not sure if self signed would work, but should.
okay just for anyone that might have tried @Kostanos solution to no avail, I do not know if he is using an older version of mailin, but I finally got his solution to work by removing the smtpOptions. in other words:
const options = { port: 25, disableWebhook: true, logFile: 'mailin.log, disableDNSValidation: true, disableDnsValidation: true, disableDkim: true, disableSpf: true, rejectUnauthorized: false, key: ‘privkey.pem’, cert: ‘fullchain.pem’ }
hope this helps someone.