Monday, April 12, 2010

Configuring Apache with SSL(WindowsXP)

Easy Steps to configure Apache with SSL
STEP1:
Install the following
i>jdk
ii>Apache Tomcat
STEP 2:
After installing the above softwares edit the following path,in System Variables
Go to,Mycomputer->RightClick->Prpoerties->Advanced->EnvironmentVariables->Under SystemVariables..Add the following variables
i>VariableName = classpath
VariableValue =c:\ProgramFiles\ApacheSoftwareFoundation\lib\servlet-api.jar
ii>VariableName = Path
VariableValue = c:\ProgramFiles\jdk*\bin
iii>VaribleName = JAVA_HOME
VariableValue = c:\ProgramFiles\Java\jdk*

iv>VariableName = CATALINA_HOME
VariableValue = c:\ProgramFiles\ApacheSoftwareFoundation\Tomcat*
STEP 3:

Now generate a key..
Open command prompt
c:\ProgarmFiles\Java\Jdk*\bin >keytool -genkey -alias Tomcat -keyalg RSA
It will prompt for keystore password :Enter any password and then foolow the instructions and finally enter yes and press enter.
Now a .keystore file will be generated in the user profile folder under c:\Document and settings\user
STEP 4:
Edit the server.xml file from the following location
c:\programFiles\ApacheSoftwareFoundation\Tomcat*\conf\Server.xml
Uncomment the line that starts with Connector = 8443
and also add the following
keystoreFile="Path were keystore file is generated"
keystorePass="Password that you entered while generating key"
STEP 5:
now start the apache web server and try
https://localhost:8443/

It should work

No comments: