Monday, April 28, 2008

Installing perl modules using CPAN on Linux

Go to terminal console as root

#perl -MCPAN -e 'shell'

cpan> install Net::DNS

That's all ;)

Wednesday, April 2, 2008

Make Self signed certificate

We can make self signed certificate for development or UAT env:

1. Create server key
umask 77
/usr/bin/openssl genrsa -des3 1024 > server.key

This will ask you passphrase, and this passphrase will be asked each time apache restarted. If you dont want this passphrase being asked, use this command instead.

umask 77
/usr/bin/openssl genrsa 1024 > server.key

2. Create server certificate
/usr/bin/openssl req -new -key server.key -x509 -days 365 -out server.crt

You will be askes some question
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:ID
State or Province Name (full name) [Berkshire]:DKI Jakarta
Locality Name (eg, city) [Newbury]:Jakarta
Organization Name (eg, company) [My Company Ltd]:PT GudangSMS
Organizational Unit Name (eg, section) []:Operation
Common Name (eg, your name or your server's hostname) []:secure.gudangsms.com
Email Address []:admin@gudangsms.com