Thursday, September 2, 2010


Creating double SSL certificate steps:

Step 1

Create a Keystore:

Command : keytool -genkey -v -alias tomcat -keyalg RSA -validity 3650 -keystore yourcompany.keystore

This leads to a series of question where I am giving password as "changeit"(wherever required),

First and Last Name

localhost/IP Address

Organization Unit


Organization Name

Your company name





Country (two letter code)


Step 2

Creating Client cert and Keys

Command: keytool -genkey -v -alias KumarPallavCert -keyalg RSA -storetype PKCS12 -keystore KumarPallav.p12

Password: changeit

First Name or Last Name

Rest details as same as first step

Step 3

Adding Certificate Public key to keystore

Command: keytool -export -alias KumarPallavCert -keystore KumarPallav.p12 -storetype PKCS12 -rfc -file kumarpallav.cer


Command : keytool -import -v -file kumarpallav.cer -keystore yourcompany.keystore –alias KumarPallavCert

password =changeit

Configuring server.xml in tomcat/conf

add following lines

port ="8443" minProcessors="5" maxProcessors="75"

protocol="HTTP/1.1" SSLEnabled="true"


enableLookups="false" disableUploadTimeout="true"

acceptCount="100" debug="0" scheme="https" secure="true"

clientAuth="true" sslProtocol="TLS"






NB : Put yourcompany.keystore inside tomcat root directory example ApacheTomcat6.0.14 along with directory as conf, bin etc.

Sunday, November 22, 2009

Hide your drives

How to Hide the drives(c:,d:,e:,a:...etc)
How to Hide the drives(c:,d:,e:,a:...etc)
This is a great trick you can play on your friends. To disable the display of local or networked drives when you click My Computer.

1.Go to start->run.Type regedit.Now go to:


Now in the right pane create a new DWORD item and name it NoDrives(it is case sensitive). Now modify it's value and set it to 3FFFFFF (Hexadecimal) .Now restart your computer. So, now when you click on My Computer, no drives will be shown(all gone...). To enable display of drives in My Computer, simply delete this DWORD item that you created.Again restart your computer.You can now see all the drives again.
Keep Rocking Njoy

Tuesday, November 3, 2009

Beware of Image spam

After a relatively long
hiatus, image spam
is making a massive
comeback in newer and
improved forms that
can evade antispam
fi lters. Rather than
clickable links, these
messages now have
obfuscated URLs hidden
as images or text, with
random white spaces
and masking characters
inserted in them.

The images even instruct users to type a URL into their
browser's address bar.
Subject lines as usual rely on deliberately
misspelled phrases promising sex enhancers and cheap
pharmaceuticals to tempt users to click on them. Multiple
similar subject lines from IP addresses spread across
many countries indicate a botnet of compromised PCs is
at work here. Globally, threats including spam have risen
dramatically in the year 2009.

Monday, September 14, 2009

Use Full Photo in Orkut rather than Cropping

Recently I found orkut removing "Use Original" button while we change our dp ie profile pic after some research I found that it can be fixed using a trick of javascript.
  • Go to Edit Profile & Click Change Photo , then Upload your Image!
  • After Uploading , dont Click anything.
  • Use the Javascript below in the addressbar (Place where we type
javascript:with(($ = (this.orkutFrame||window).document.forms)[$.length - 1])action = "/EditSummary.aspx?apw=9999&aph=9999&apdw=9999&apdh=9999&Action.cropProfilePhoto" ,submit();void(8)

  • After Pasting it , Click Enter.
  • Some Error like "Bad, bad user! No donut for you" will come..
  • Never Mind that.
  • Now Click your home page, the uploaded Picture will be fully Sized in your Orkut Account.

Credits: Oug !
Original article link:

Caution Orkut doesnot permit using javascript but it is a safe javascript verified in Orkut help centre by level 3 user
Rizwan Ibrahim
Orkut Help Centre Link:

Wednesday, September 2, 2009

Wild Keyboard Trick

Save this in notepad as anyname.vbs :
and run see the magic:

Set wshShell=wscript.CreateObject("WScript.Shell")
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"