Can I use the Zend Framework or PHP to determine which version of SSL my request is using?

Asked 2 years ago, Updated 2 years ago, 89 views

I would like to distinguish between SSLv3 and TLS.
Thank you for your cooperation.

php ssl zend-framework

2022-09-30 20:22

2 Answers

You will need to configure it, but there is a way.

You can obtain the SSL/TLS version by writing SSLOptions+StdEnvVars in httpd.conf or .htaccess and $_SERVER['SSL_PROTOCOL'] in a PHP script in a valid directory.
However, SSLOptions+StdEnvVars is a setting that affects HTTPd performance, so you should use it only

Please refer to

I also need to set it up, but there is a way.

You can obtain the SSL/TLS version by writing fastcgi_param SSL_PROTOCOL$ssl_protocol; in nginx.conf and setting it to $_SERVER['SSL_PROTOCOL'] in a PHP script in a valid directory.

Please refer to


2022-09-30 20:22

If you are using mod_ssl in Apache, would it be possible to obtain it with $_ENV['SSL_PROTOCOL']?
http://httpd.apache.org/docs/2.4/en/mod/mod_ssl.html


2022-09-30 20:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.