0

I see the different versions on running this terminal

echo '<?php phpinfo(); ?>' | php 2>&1 |grep -i ssl

Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
SSL => Yes
SSL Version => OpenSSL/1.0.1f
core SSL => supported
extended SSL => supported
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.0g  2 Nov 2017
OpenSSL Header Version => OpenSSL 1.1.0g  2 Nov 2017
Openssl default config => /usr/lib/ssl/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
Native OpenSSL support => enabled

1 Answers1

0

You are seeing the versions of two different pieces of PHP.

The first output is for the curl module. PHP's curl interface uses the curl library provided by the OS, which then uses the OpenSSL library it is linked against, in this case 1.0.1f.

Then, PHP has a direct OpenSSL interface, which is linked against version 1.1.0g.

If you want curl to use a newer OpenSSL version, you need to upgrade your curl library, and make sure PHP's curl module uses the newer library.

Tero Kilkanen
  • 38,887