Re: PHP 7.4: SSL routines:CONNECT_CR_CERT:certificate verify failed

2021-12-23 Thread Leo Unglaub
Hey, Kind of strange that this works. Port 587 (submission) is usually set up to use STARTTLS, just like port 25 (smtp) so you would need specify -starttls smtp an an option to openssl s_client. Port 465 (submissions, formerly known as smtps) would work with mandatory TLS if the server

Re: PHP 7.4: SSL routines:CONNECT_CR_CERT:certificate verify failed

2021-12-23 Thread Leo Unglaub
Hey, thank you for your reply. My first guess ist that the chain is not correct and so the server's certificate cannot be validated. you are correct about it. I read the openssl output wrong, i got confused by "Verify return code: 0 (ok)" and thought the connection was successful. But is

Re: PHP 7.4: SSL routines:CONNECT_CR_CERT:certificate verify failed

2021-12-23 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 12:51:14AM +0100, Leo Unglaub wrote: > Hey friends, > > i have a OpenBSD 7.0 server with all syspatches applied. By the way, I don't know if this is the same server that handles inbound SMTP for your domain, (mail.unglaub.at), but you have a configuration issue

Re: PHP 7.4: SSL routines:CONNECT_CR_CERT:certificate verify failed

2021-12-23 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 12:51:14AM +0100, Leo Unglaub wrote: > Here is the successful response: > > >CONNECTED(0003) > >3143473289712:error:1400442E:SSL routines:CONNECT_CR_SRVR_HELLO:tlsv1 alert > >protocol version:/usr/src/lib/libssl/tls13_lib.c:151: > >--- > >no peer certificate available

Re: PHP 7.4: SSL routines:CONNECT_CR_CERT:certificate verify failed

2021-12-23 Thread Mike Fischer
Hi Leo, Am 23.12.2021 um 00:51 schrieb Leo Unglaub : > >> openssl s_client -tls1_2 -connect mail.foobar.com:587 >> openssl s_client -tls1_3 -connect mail.foobar.com:587 (both 1.2 and 1.3 work) Kind of strange that this works. Port 587 (submission) is usually set up to use STARTTLS, just like

Re: PHP 7.4: SSL routines:CONNECT_CR_CERT:certificate verify failed

2021-12-23 Thread Michael Hekeler
Am 23.12.21 00:51 schrieb Leo Unglaub: > Hey friends, > > i have a OpenBSD 7.0 server with all syspatches applied. On that server i > have setup httpd and PHP 7.4 running via PHP-FPM. I followed the readme > provided by the package and everything seams to be fine. > > There is only one issue

PHP 7.4: SSL routines:CONNECT_CR_CERT:certificate verify failed

2021-12-22 Thread Leo Unglaub
Hey friends, i have a OpenBSD 7.0 server with all syspatches applied. On that server i have setup httpd and PHP 7.4 running via PHP-FPM. I followed the readme provided by the package and everything seams to be fine. There is only one issue when i try to establish a secure connection from