0

I am trying to get the version of tls which is currently used when invoking the url. I'm trying to get the tls version from php curl like the command curl in Ubuntu.

for example:

curl -v https://qpyl.uas-gw.info
* Rebuilt URL to: https://qpyl.uas-gw.info/
*   Trying 54.199.158.6...
* Connected to qpyl.uas-gw.info (54.199.158.6) port 443 (#0)
* found 1 certificates in ca.crt
* found 692 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384

like this to show the tls version result.

But I cannot get the version in php curl like the above curl does

SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384

php openssl version: openssl/1.0.2g

php version: 5.5.38.

JSON C11
  • 11,272
  • 7
  • 78
  • 65

0 Answers0