-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostname verification failed #30
Comments
any solution to this please |
I've started seeing the identical error on my Manjaro Linux with sendEmail. |
It seems like sendemail needs a method of disabling TLS certificate validation. So it can be used to send to hosts without valid TLS certs, as in self generated certificates. For example, out of the box Debian 12 Bookworm with sendemail and exim4 cannot be used without using the -o tls=no option. Exim > 4.93~RC1-4 defaults to having TLS on with a self signed cert. So the STARTTLS will be advertised, but the cert is self signed.
Line 792 of /usr/share/perl5/IO/Socket/SSL.pm (libio-socket-ssl-perl 2.081-2), seems to a regex looking for a hostname or IP.
One way that seems to work to get around this is to tell IO::Socket::SSL to not try to verify the certificate by setting SSL_verify_mode => 0
The docs say to use SSL_VERIFY_NONE instead of 0, but the use of use strict; seems to prevent that from working. |
Hi, Since Update on Raspbian bookworm I have the same problem, identical configuration is working under Raspbian bullseye ... Thank you |
This worked for me
|
thank u for leading down right path @abhi-io. note for a person that want to keep repo aligning, 1.56-5.2 is now available by bookworm-backports. i install this and it also fix. 😊 |
Hi I am struggling with this, I get the following error,
Use of uninitialized value $2 in concatenation (.) or string at /usr/share/perl5/IO/Socket/SSL.pm line 792.
May 02 11:51:03 kali sendemail[50331]: ERROR => TLS setup failed: hostname verification failed
Please assist.
The text was updated successfully, but these errors were encountered: