XF 2.2 ErrorException: Job XF:EmailUnsubscribe: [E_WARNING] stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A

findozor

Active member
I started getting errors at some point
I couldn't find similar topics so I decided to create a separate one
I send mail through a dedicated smtp server (postfix)
  • ErrorException: Job XF:EmailUnsubscribe: [E_WARNING] stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed
  • src/vendor/laminas/laminas-mail/src/Protocol/Imap.php:106

Трассировка стека​

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] str...', '/home/findozorn...', 106)
#1 src/vendor/laminas/laminas-mail/src/Protocol/Imap.php(106): stream_socket_enable_crypto(Resource id #5, true, 121)
#2 src/vendor/laminas/laminas-mail/src/Protocol/Imap.php(45): Laminas\Mail\Protocol\Imap->connect('mail.findozor.n...', 143, 'tls')
#3 src/XF/Mail/Storage/Imap.php(28): Laminas\Mail\Protocol\Imap->__construct('mail.findozor.n...', 143, 'TLS')
#4 src/XF/EmailUnsubscribe/Processor.php(164): XF\Mail\Storage\Imap::setupFromHandler(Array)
#5 src/XF/SubContainer/Unsubscribe.php(15): XF\EmailUnsubscribe\Processor::getDefaultUnsubscribeHandlerStorage(Object(XF\Pub\App))
#6 src/XF/Container.php(31): XF\SubContainer\Unsubscribe->XF\SubContainer\{closure}(Object(XF\Container))
#7 src/XF/SubContainer/Unsubscribe.php(33): XF\Container->offsetGet('storage')
#8 src/XF/Job/EmailUnsubscribe.php(20): XF\SubContainer\Unsubscribe->storage()
#9 src/XF/Job/Manager.php(260): XF\Job\EmailUnsubscribe->run(8)
#10 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#11 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#12 job.php(43): XF\Job\Manager->runQueue(false, 8)
#13 {main}

Содержимое запроса​

array(4) {
["url"] => string(14) "/forum/job.php"
["referrer"] => string(80) "https://findozor.net/forum/threads/gde-odobrili-v-janvare-2024-goda.9283/page-47"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
As I replied on my site, the issue is with the email server you are using. The SSL certificate on the IMAP server has expired:

Code:
openssl s_client -crlf -connect mail.XXX.XXX:993 | openssl x509 -noout -dates
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = mail.XXX.XXX
verify error:num=10:certificate has expired
notAfter=Jan 17 20:17:29 2024 GMT
verify return:1
depth=0 CN = mail.XXX.XXX
notAfter=Jan 17 20:17:29 2024 GMT
verify return:1
notBefore=Oct 19 20:17:30 2023 GMT
notAfter=Jan 17 20:17:29 2024 GMT
 
Last edited:
As I replied on my site, the issue is with the email server you are using. The SSL certificate on the IMAP server has expired:

Code:
openssl s_client -crlf -connect mail.XXX.XXX:993 | openssl x509 -noout -dates
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = mail.XXX.XXX
verify error:num=10:certificate has expired
notAfter=Jan 17 20:17:29 2024 GMT
verify return:1
depth=0 CN = mail.XXX.XXX
notAfter=Jan 17 20:17:29 2024 GMT
verify return:1
notBefore=Oct 19 20:17:30 2023 GMT
notAfter=Jan 17 20:17:29 2024 GMT
Thanks, Matt. It seems i missed your reply before. Already fixed this issue by renewing ssl certificate.
 
Back
Top Bottom