ssl & wamp 2.0
Posted by: jin (---.hsd1.in.comcast.net)
Date: March 05, 2008 04:55PM

hello every one I am new to wamp I have installed wamp 2.0 on windows xp pro all seem to work fine but i cannot get ssl to work at all I need ssl to work for my projects

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: willietck (60.54.13.---)
Date: March 07, 2008 11:53AM

same goes here... :-(

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: yfastud (Moderator)
Date: March 07, 2008 04:32PM

toivo's post just bumped up; check it out since my guide for SSL is not finished yet

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: bloody velvet (---.nyc.res.rr.com)
Date: March 08, 2008 01:18AM

Jin:
Join us over here:
[forum.wampserver.com]

Post the errors you're having so I can help troubleshoot.

I'm watching that thread, so you're more likely to get help there.

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: hambuler (---.cpe.net.cable.rogers.com)
Date: March 08, 2008 08:45PM

You can follow my steps to create working https SSL:

****Step1****** -> Create SSL Certificate and Key
1a) Open the DOS command window and change directory to bin directory of wamp apache directory
for example, the DOS prompt should be C:\wamp\bin\apache\apache2.2.8\bin>

1b) Create a server key with 1024 bits encryption. You should enter this command without quotes:
"openssl genrsa -des3 -out server.key 1024". It'll ask you a pass phrase, just enter it.

1c) Remove the pass phrase from the RSA private key (while keeping a backup copy of the original file). Enter this command without quotes: "copy server.key server.key.org" and then "openssl rsa -in server.key.org -out server.key". It'll ask you the pass phrase, just type it.

1d) Create a self-signed Certificate (X509 structure) with the RSA key you just created. Enter the command without quotes: "openssl req -new -x509 -nodes -sha1 -days 365 -key server.key -out server.crt -config C:\wamp\bin\apache\apache2.2.8\bin\openssl.cnf".

You'll fill in the information after entering this command. The location of config file needs to be changed. In windows, you won't see ".cnf" extension of the file openssl, but in DOS you'll see the full name openssl.cnf.


***** Step2***** -> Copy the server.key and server.crt files.

2a) In the conf folder of apache2.2 folder, create two folders named as ssl.key and ssl.crt

2b) copy the server.key file to ssl.key folder and server.crt file to ssl.crt


****Step3****** -> Edit the httpd.conf file and php.ini
3a) In httpd.conf file, remove the comment '#' at the line which says: LoadModule ssl_module
modules/mod_ssl.so

3b) In httpd.conf, remove the comment '#' at the line which says: Include
conf/extra/httpd_ssl.conf
Then move that line after this block <IfModule ssl_module>.... </IfModule>

3c) open the php.ini file located in apache2.2....\bin folder, remove the comment ';' at the line
which says: extension=php_openssl.dll

****Step4***** -> Edit the httpd_ssl.conf file in extra folder
4a) Find the line which says "SSLMutex...." and change it to "SSLMutex default" without quotes

4b) Change the line which says "DocumentRoot ..." to DocumentRoot "C:/wamp/www/" with quotes. Change the line "ErrorLog...." to Errorlog logs/sslerror_log. Change the line "TransferLog ...." to TransferLog logs/sslaccess_log


4c) SSL crt file: Change the line "SSLCertificateFile ...." to SSLCertificateFile "conf/ssl.crt/server.crt"


4d) SSL key file: Change the line "SSLCertificateKeyFile ...." to SSLCertificateKeyFile "conf/ssl.key/server.key"


4e) Change the line <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin"> to <Directory "C:/wamp/www/"> and add the following lines inside <Directory>...</Directory> tags:

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all


****Step5***** -> Restart the Apache server


****Step6**** -> if restart is successful, then open the browser and enter [localhost]

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: jin (---.hsd1.in.comcast.net)
Date: March 08, 2008 09:33PM

C:\wamp\bin\apache\apache2.2.8\bin> does not exsist and dos gives error

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: jin (---.hsd1.in.comcast.net)
Date: March 08, 2008 09:35PM

the syntax or command is incorrect when i run C:\wamp\bin\apache\apache2.2.8\bin> in command

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: hambuler (---.cpe.net.cable.rogers.com)
Date: March 08, 2008 09:37PM

Change directory to apache2.2... you have on your wamp server. Version 2.2.8 is the newest apache.

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: jin (---.hsd1.in.comcast.net)
Date: March 08, 2008 09:38PM

I have wamp 2.0b and I have the following problems

C:\wamp\bin\apache\apache2.2.8\bin> wont run in dos

and

4e) Change the line <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin"> to <Directory "C:/wamp/www/"> and add the following lines inside <Directory>...</Directory> tags:

I dont have a directory C:/Program Files/Apache Software Foundation/

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: hambuler (---.cpe.net.cable.rogers.com)
Date: March 08, 2008 09:49PM

I assume you know DOS commands. Use these two commands without quotes: "cd /d C:\" and then "cd wamp\bin\apache\apache2.2.8\bin". apache2.2.8 must be changed to what folder you have on your wamp server. Check my post at [forum.wampserver.com] . It's my latest version of SSL setup guide.

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: jin (---.hsd1.in.comcast.net)
Date: March 08, 2008 11:01PM

yea Ill have to pass and use direct connect to my server host because my machine is a xp box and its used for development and personal cd I dont know why I would run cd its not coming off the cd drive the path to my wamp is C:\wamp

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: jin (---.hsd1.in.comcast.net)
Date: March 08, 2008 11:02PM

all i did was download wampserver 2.0b and installed it thats it

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: hambuler (---.cpe.net.cable.rogers.com)
Date: March 09, 2008 01:11AM

I am not sure what you mean. So the wamp server2.0b runs well with ssl?

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: jin (---.hsd1.in.comcast.net)
Date: March 09, 2008 05:20AM

well I am going to look in other directions I cannot get ssl to work with wampserver 2.0b so I am going to try some other programs

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: hambuler (---.cpe.net.cable.rogers.com)
Date: March 09, 2008 05:55AM

There are many alternatives, ofcourse you can find it. My HTTPS SSL setup guide definitely will help you get started, testing https server and saving your time, effort. You can read my other posts for other alternative if you can't make SSL work.

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: beb (---.w90-44.abo.wanadoo.fr)
Date: September 15, 2008 04:39PM

hy hambuler,

i have a problem with your point "1d)", i have not the file openssl.cnf, but i have openssl.exe.

and when i use openssl.exe, i have an error:
error on line 1 of C:\wamp\bin\apache\apache2.2.8\bin\openssl.exe
1572:error:0E079065:configuration file routinesgrinning smileyEF_LOAD_BIO:missing equal sign: .\crypto\conf\conf_def.c:366line 1

thanks
beb

excuse me, it's ok, i'm tired. sad smiley



Edited 3 time(s). Last edit at 09/15/2008 06:02PM by beb.

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: achristouio (---.uio.no)
Date: September 16, 2008 11:39PM

Trying this openssl commands, it says the .cnf file doesn't exist.

How do I get that made ??

Options: ReplyQuote
Re: ssl & wamp 2.0
Posted by: Guto (---.169.123.106.rev.optimus.pt)
Date: November 18, 2008 08:55PM

When i tried to create the ssl certificate on msdos (Win XP) check what happens

C:\wamp\bin\apache\apache2.2.8\bin>openssl req -new > localhost.src


Unable to load config info from /usr/local/ssl/openssl.cnf


Check that the directory /usr/local is linux based , and this directory even exists on wamp windows installation

I think i got to change my WAMP envirenmont

Wamp still not working good with some php extension , and the online / offline features

Nice work but need to work hard on it

Options: ReplyQuote


Sorry, only registered users may post in this forum.