Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: installation of apache 2.2.21 with openssl 0.9.8r.msi |
|
Author |
|
Grail
Joined: 22 Nov 2011 Posts: 2
|
Posted: Tue 22 Nov '11 3:06 Post subject: installation of apache 2.2.21 with openssl 0.9.8r.msi |
|
|
Hi, I am new to the apache lounge and would like to know the following:
I have Windows 7 64 bit and have installed Apache 2.2.17 no ssl, php 5.3 and mysql 5.5, phpmyadmin 3.3. I used the windows msi installer for apache, mysql and php, while phpmyadmin I used the zip file.
Everything is works fine.
I would like to if it is necessary to install apache with openssl, I will not be uploading anything on the internet it is for learning and personal use, but I am afraid that someone my hack in and do damage. I will also be installing python, ruby, rails and java, therefore xamp is out of the question. Therefore I am considering of uninstalling apache 2.2.17 no ssl and installing apache 2.2.21 with openssl using the msi installer for windows.
In many of the sites that I have seen the steps provided are all on either linux or binary installation.
How does one config apache 2.2.21 with openssl using the msi installer for windows. In other words are their steps to show configuring the apache as a server and creating the certificate via Windows mis installer. I would appreciate your assistance in this matter |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 22 Nov '11 11:15 Post subject: |
|
|
1st.
Quote: | I will not be uploading anything on the internet it is for learning and personal use, but I am afraid that someone my hack in and do damage |
Do not open a port through your router to it and no one will be able to get to it.
2.
If I remember correctly, and it has been many years since I used the msi from apache.org, you will have to uninstall 2.2.17 first. Then install 2.2.21 with OpenSSL. Do not worry, your current configuration will remain, but just in case save a copy of the contents of your conf folder anyway before uninstalling 2.2.17.
once 2.2.21 is installed, then in conf/httpd.conf uncomment the lines
LoadModule ssl_module modules/mod_ssl.so
and near the bottom of the file
Include conf/extra/httpd-ssl.conf
3. Creating Certificates
In a command prompt window cd to the Apache's bin folder.
when using openssl you will receive this message
Unable to load config info from /usr/local/ssl/openssl.cnf
Two different ways to deal with this are spelled out in this post. Your location of the openssl.cnf file will be in your Apache conf folder, not necessarily any specified in this post.
http://www.apachelounge.com/viewtopic.php?t=3008
Now, create certs
openssl req -new > server.csr
openssl rsa -in privkey.pem -out server.key
openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 2048
Create a folder inside Apache's conf folder called simply "ssl"
copy/move server.crt and server.key into this folder
in conf/extra/httpd-ssl.conf, find and modify the lines for server.crt and server.key to match the locations of these two files and then start or restart Apache
http://localhost
Your browser will scream about the certificates because they are self signed, but just tell it to go ahead anyway and you will be into your content, in SSL |
|
Back to top |
|
|
|
|
|
|