php openssl





php -i


OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.1e-fips 11 Feb 2013
OpenSSL Header Version => OpenSSL 1.0.1e-fips 11 Feb 2013
Openssl default config => /etc/pki/tls/openssl.cnf

Directive => Local Value => Master Value
openssl.cafile => no value => no value
openssl.capath => no value => no value




; Most users should not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context option.
openssl.cafile =
openssl.capath =


Check Setting By Code



array(8) {
  string(21) "/etc/pki/tls/cert.pem"
  string(13) "SSL_CERT_FILE"
  string(18) "/etc/pki/tls/certs"
  string(12) "SSL_CERT_DIR"
  string(20) "/etc/pki/tls/private"
  string(12) "/etc/pki/tls"
  string(0) ""
  string(0) ""

php -r 'print_r(openssl_get_cert_locations()["default_cert_file"]);'