Jump to content

SSL Testing


anujgarg

Recommended Posts

Hi Everyone,

I have just successfully installed PHP 5.2.9 and Apache 2.2.11 on my system. Apache is openssl enabled. Now, I am willing to test ssl stuff on there. How can I proceed further?

Do I need to modify httpd.conf for ssl? If yes, how?

I know there are lot of stuff over the net...if anyone let me know for a detailed procedure for the same then it will be appreciable.

 

TIA

 

Anuj

 

Link to comment
https://forums.phpfreaks.com/topic/158232-ssl-testing/
Share on other sites

Heya, you will want to use openssl (command line tool that comes with your apache setup) to generate a custom SSL certificate, and then install it (in httpd.conf or httpd-ssl.conf). There are a lot of tutorials about this. I dug up this with a quick google search: http://blog.taragana.com/index.php/archive/openssl-how-to-create-self-signed-certificate/ (just shows how to generate the certificate, not how to install it).

 

Once installed, you should be able to access your newly secured site with the https protocol!

 

EDIT:

Found a shorter, quicker tutorial. Although it is less informative, it may help you just get things working: http://www.perturb.org/display/entry/754/

thanks 8ball for quick reply...

I have a opnssl intalled too and trying to generate a new certificate by writing command "req -new new.cert.csr" but it is not working...can you please tell me the full way/steps of generating certificate and install it?

 

TIA

I have generated the key by using all those commands given in the URL http://blog.taragana.com/index.php/archive/openssl-how-to-create-self-signed-certificate/

but I am unable to find out the key file that was generated.

 

Also, I have httpd.conf and ssl.conf files under conf directory, where the following code should be written:

SSLEngine on

SSLCertificateFile    /www/ssl.crt/server.crt

SSLCertificateKeyFile /www/ssl.key/server.key

OK...I did something with those statements. I wrote them in "ssl.conf" as:

 

SSLEngine on

SSLCertificateFile    C:/Program Files/Apache Group/Apache2/bin/ca.crt

SSLCertificateKeyFile C:/Program Files/Apache Group/Apache2/bin/ca.key

 

I think these are the only steps to make ssl enable. But now, how can I test whether I have successsfully configured/installed ssl certificate or not?

Can I create a dummy php file for the same or is there any other way to check it?

 

Please Help!!!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.