Detect TLS version with PHP or command line?
For PHP to have the $_SERVER['SSL_PROTOCOL'] key/value Apache must have SSLOptions +StdEnvVars set in the .htaccess file but this no longer works, eh.
I went looking around and this guy suggests using the following command:
grep SSLProtocol /etc/httpd/conf.d/ssl.conf
Well, I had to go searching for the ssl.conf file and there are...a lot:
find / -name '*ssl.conf*' 2>/dev/null
So I tried the following:
grep SSLProtocol /etc/dovecot/ssl.conf
grep SSLProtocol /etc/apache2/conf.modules.d/495_mod_ssl.conf
Those commands returned empty results.
So, simply put: how do I detect the TLS version being used on the server using PHP or the command line please?
-
try:
grep -i -R SSLProtocol /etc/*0 -
QF, thank you. This is an okay fall-back suggestion however I can't act on it since I don't have a second server to test dumbs*** updates by the OS and cPanel first. Last year I lost a month of my life after a forced migration! So I'm filing this one for future employees to deal with.
0
Please sign in to leave a comment.
Comments
2 comments