Subject: | starttls doesn't seem to take ssl_version or other SSL options |
Suppose I want to use starttls.
The default versions are: SSL_v3 is dead, and TLSv1 is deprecated (v12 is prefered).
If I specify ssl_version, use_ssl is forced on. But the host wants starttls.
Further, ssl_options aren't saved unless use_ssl is set.
starttls doesn't take any arguments.
So how does one use starttls with custom ssl_options (e.g. trusted certs, host verification, etc)?
It doesn't seem possible.
Also, the greeting doesn't seem to be saved - how do I know that the host supports (demands) starttls?
See Net::SMTP for one approach to an API that works with starttls...note that it saves the SSL options at new, and applies them with starttls.