diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-11-02 10:43:01 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-11-02 10:43:01 +0000 |
commit | 6db308137dd2c35568869f11ee14fa2c58067042 (patch) | |
tree | 8cf9415d497be1ceb77fbf2892e82aa8d433ccb4 /Postman | |
parent | f98a93b38b19dc27fc91bfa3a1ec0084351d31a5 (diff) | |
download | Post-SMTP-6db308137dd2c35568869f11ee14fa2c58067042.zip |
Fix self sign certificate
git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1757228 b8457f37-d9ea-0310-8a92-e5e31aec5664
Diffstat (limited to 'Postman')
-rw-r--r-- | Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php b/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php index db8016d..e2dade8 100644 --- a/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php +++ b/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php @@ -203,6 +203,11 @@ class Postman_Zend_Mail_Protocol_Smtp extends Postman_Zend_Mail_Protocol_Abstrac if ($this->_secure == 'tls') { $this->_send('STARTTLS'); $this->_expect(220, 180); + + stream_context_set_option($this->_socket, 'ssl', 'verify_peer', true); + //stream_context_set_option($this->_socket, 'ssl', 'verify_peer_name', false); + stream_context_set_option($this->_socket, 'ssl', 'allow_self_signed', true); + if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { /** * @see Postman_Zend_Mail_Protocol_Exception |