anujgarg Posted May 15, 2009 Share Posted May 15, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/158232-ssl-testing/ Share on other sites More sharing options...
Guest Posted May 15, 2009 Share Posted May 15, 2009 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/ Quote Link to comment https://forums.phpfreaks.com/topic/158232-ssl-testing/#findComment-834588 Share on other sites More sharing options...
anujgarg Posted May 15, 2009 Author Share Posted May 15, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/158232-ssl-testing/#findComment-834609 Share on other sites More sharing options...
anujgarg Posted May 15, 2009 Author Share Posted May 15, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/158232-ssl-testing/#findComment-834630 Share on other sites More sharing options...
anujgarg Posted May 15, 2009 Author Share Posted May 15, 2009 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!!! Quote Link to comment https://forums.phpfreaks.com/topic/158232-ssl-testing/#findComment-834635 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.