Quick Setup to Enable SSL ZendServer CE In Windows

this short tutorial will enable SSL in your zend Server community edition and below is the software version when writing this article:

Zend Server CE Version: 5.6.0

Windows Version: Windows 7 64bit

follow this step by step tutorial to enable the SSL. This is intended for Development Environment NOT production, that’s why i call this article ‘Quick Setup’ and you will enable this SSL in less than 1 hour

-open windows command line

-we will create file ‘server.key’ as starting point

C:\Users\R>”C:\Program Files (x86)\Zend\Apache2\bin\openssl.exe” genrsa -des3 -out server.key 1024

(enter the password twice and remember that for our next task)

find the file ‘openssl.cnf’ in your apache folder, in my case i found the file in directory ‘C:\Program Files (x86)\Zend\Apache2\conf’, then copy that file to root ‘c:\’ (you can delete this file after your SSL working perfectly)

-create .pem file

C:\Users\R>”C:\Program Files (x86)\Zend\Apache2\bin\openssl.exe” rsa -in server.
key -out server.pem

-now lets create server.csr

C:\Users\R>”C:\Program Files (x86)\Zend\Apache2\bin\openssl.exe” req -config c:\
openssl.cnf -new -key server.key -out server.csr

-last step is creating unsigned certificate for 1 year

C:\Users\R>”C:\Program Files (x86)\Zend\Apache2\bin\openssl.exe” x509 -req -days 30 -in server.csr -signkey server.key -out server.crt

go to your home directory (mine is C:\Users\R) then copy these 4 file which is server.key, server.pem, server.csr and server.crt to your apache conf folder

-open your httpd.conf to activate our ssl file, uncomment
#Include conf/extra/httpd-ssl.conf

to

Include conf/extra/httpd-ssl.conf

save and exit

-open httpd-ssl.conf, change this line

SSLCertificateKeyFile “C:\Program Files (x86)\Zend\Apache2/conf/server.key”

to

SSLCertificateKeyFile “C:\Program Files (x86)\Zend\Apache2/conf/server.pem”

-restart apache in Windows Service

(when you can’t start your apache, look at EventViewer in Administrative Tools Windows, it will tell you what is wrong with your apache configuration file)

-test our SSL in localhost by typing ‘https://localhost’

You will see untrusted connection like this page, just add the exception because we only use this for development

this is the page you will found when you successfully enable SSL in your ZendServer Apache in Windows:

Iklan

Satu pemikiran pada “Quick Setup to Enable SSL ZendServer CE In Windows

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s