I run PHP-FPM inside a FreeBSD jail and Postfix in host. I have a php script to send e-mails which works if I have TLS or SSL disabled but it doesn't work if enable either of them. Jail has access to /dev/random
If I run PHP-FPM from the FreeBSD host then it works.
Any idea what is wrong?
Code:
Mar 3 15:12:28 server1 postfix/smtpd[83711]: connect from server1.mydomain.com[138.201.248.xxx]
Mar 3 15:12:28 server1 postfix/smtpd[83711]: SSL_accept error from server1.mydomain.com[138.201.248.xxx]: 0
Mar 3 15:12:28 server1 postfix/smtpd[83711]: warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:s3_pkt.c:1500:SSL alert number 48:
Mar 3 15:12:28 server1 postfix/smtpd[83711]: lost connection after STARTTLS from server1.mydomain.com[138.201.248.xxx]
Mar 3 15:12:28 server1 postfix/smtpd[83711]: disconnect from server1.mydomain.com[138.201.248.xxx] ehlo=1 starttls=0/1 commands=1/2
If I run PHP-FPM from the FreeBSD host then it works.
Any idea what is wrong?