After upgrade to php 5.6 on freebsd 9.3 I ran into SSL certificate verification trouble.
I got this error message(s):
- fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- fsockopen(): Failed to enable crypto
- fsockopen(): unable to connect to ssl://xx.xx.xx:443 (Unknown error)
I followed these steps to get things sorted out, posting here to help others who run into same trouble.
Logged in via ssh
- # locate cert.pem
- on my server it was found in /usr/local/etc/ssl/cert.pem
- added following to php.ini: openssl.cafile=/usr/local/etc/ssl/cert.pem
- restart httpd service
Problem solved, good luck!
I got this error message(s):
- fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- fsockopen(): Failed to enable crypto
- fsockopen(): unable to connect to ssl://xx.xx.xx:443 (Unknown error)
I followed these steps to get things sorted out, posting here to help others who run into same trouble.
Logged in via ssh
- # locate cert.pem
- on my server it was found in /usr/local/etc/ssl/cert.pem
- added following to php.ini: openssl.cafile=/usr/local/etc/ssl/cert.pem
- restart httpd service
Problem solved, good luck!