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
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/

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!!!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.