in reply to Re^2: Net::SMTP::SSL on Windows 8
in thread Net::SMTP::SSL on Windows 8

I have now confirmed it. I had IO::Socket::SSL version 1.953 installed. I re-installed version 1.76, and everything started working as before. So, what does the new version need?

Replies are listed 'Best First'.
Re^4: Net::SMTP::SSL on Windows 8
by syphilis (Archbishop) on Jan 26, 2014 at 01:09 UTC
    So, what does the new version need?

    Searching the Changes file for "certificate" might turn up something helpful.
    For example, I see that there are two "MAJOR BEHAVIOR CHANGE" announcements (for 1.950) in relation to certs.

    Cheers,
    Rob

      The documentation for IO::Socket::SSl says the default of SSL_VERIFY_NONE for option SSL_verify_mode is going to change. Well apparently that change occurred. And it seems I should be setting this option explicitly, or better yet, supply a certificate and path to be verified. However, I am not using IO::Socket::SSL directly, but it is embedded in Net::SMTP::SSL.

      I see a bug 81594 was opened last November on Net::SMTP::SSL identifying the need to pass through options to IO::Socket::SSL.

      It appears to me, all the solutions to sending e-mail via SSL pass through Net::SMTP::SSL affecting GoDaddy, Gmail, etc. It appears a few people are hacking either module to set the option, or like myself, I simply reloaded the 1.76 version of IO::Socket::SSL.

Re^4: Net::SMTP::SSL on Windows 8
by noxxi (Pilgrim) on Feb 19, 2014 at 20:17 UTC
    With 1.950 IO::Socket::SSL switched the default from "no certificate verification" to "require verification", after 3 years of complaining (since 1.79) if you used the insecure default of no verification. It also uses the default location for the certificates provided by the openssl installation.

    On windows there are probably no certificates installed in a form usable by openssl, so you have to do it by your own. You might use Mozilla::CA and then set the SSL_ca_file like documented there.