Reputation: 529
I've got a server Apache/2.2.22 (Debian) with PHP/5.4.45-0+deb7u5.
I need to get a php environment variable that specifies which SSL protocol version is used between client and server (I mean TLS 1.1, TLS 1.2 etc.).
So, I will use that variable in a script to get different options using TLS 1.1 or TLS 1.2 etc...
That server has got OpenSSL/1.0.1t.
Upvotes: 4
Views: 2877
Reputation:
The SSL_PROTOCOL
environment variable should have what you're looking for. It's documented in the Apache manual for mod_ssl, along with other SSL variables.
Note that some hosting environments may not make this variable available. If you don't see it, you may need to add SSLOptions +StdEnvVars
to your web server configuration, or to an .htaccess
file.
Upvotes: 4