RE: [PHP4BETA] ssl check

[email protected] (Steve Langasek)
Newsgroups php.version4
Message-ID <[email protected]>
On Wed, 24 May 2000, Harald Ponce de Leon wrote:

> ive used the following script on my secure server and i get no results
> (except for REMOTE_ADDR which is just for testing)..

> <?
> //SSL_CIPHER, SSL_CIPHER_EXPORT, SSL_CIPHER_ALGKEYSIZE, SSL_USEKEYSIZE
> echo 'REMOTE_ADDR=' . $REMOTE_ADDR . '<br>';
> echo 'SSL_CIPHER=' . $SSL_CIPHER . '<br>';
> echo 'SSL_CIPHER_EXPORT=' . $SSL_CIPHER_EXPORT . '<br>';
> echo 'SSL_CIPHER_ALKEYSIZE=' . $SSL_ALGKEYSIZE . '<br>';
> echo 'SSL_USEKEYSIZE=' . $SSL_USEKEYSIZE . '<br>';
> ?>

> my server runs

> Apache/1.3.12 (Unix) PHP/4.0b4pl1 mod_ssl/2.6.1 OpenSSL/0.9.5

> under redhat6.0..

> also tested this with php4rc2 under freebsd to no avail..

> have you tested this? is there something special i have to do?

I dropped the above script on a server to test it.

Apache/1.3.11 (Unix)  (Red Hat/Linux) PHP/4.0.0
RedHat 6.1

Here are the results of http://hostname/sslchk.phtml (i.e., no SSL
encryption):

REMOTE_ADDR=xx.xx.xx.xx
SSL_CIPHER=
SSL_CIPHER_EXPORT=
SSL_CIPHER_ALKEYSIZE=
SSL_USEKEYSIZE=

And here are the results of https://hostname/sslchk.phtml

REMOTE_ADDR=xx.xx.xx.xx
SSL_CIPHER=RC4-MD5
SSL_CIPHER_EXPORT=false
SSL_CIPHER_ALKEYSIZE=
SSL_USEKEYSIZE=


But you say that you checked the page through your secureserver, and the SSL_*
variables weren't set?

Steve Langasek
postmodern programmer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.