Archive

Archive for March, 2011

Copying Keystore files across computers corrupting the keystore file

March 1st, 2011

I had a java project in my ubuntu netbeans, that used a keystore file created using keytool for secured communication with the server. When i deployed the project into a windows server it didnt work. When I tracred i was getting this exception

java.io.IOException: Keysize too big

Some times googling just doesnt work. I know only sometimes, most times it helps. I thought, it could be some JVM memory issue, then thought Windows OS issue. Finally decided to list the keystore using keytool in the server itself. I got the error,

keytool: java.io.IOException: Keysize too big

Now came to a conclusion its the keystore file is corrupted. WIth some help from IRC and stack over flow narrowed the problem. It was the way i copied the file to the server, i had used normal TEXT MODE FTP, which will mess the keystore file. As TEXT MODE copies line by line, few characters will be interpreted wrongly like ‘\n’. Using sftp, scp or binary mode is best. I used scp and it worked. I couldnt just accept i had been spending hours to trace the issue. Let me call it a day.. cheers.

A Nice reasoning in stackoverflow for my post: FTP programs try to convert between different line-ending modes, so one 10 byte on the unix side gets converted to one 10 and one 13 byte on the windows side – by Pa?lo Ebermann

http://stackoverflow.com/questions/5142396/java-io-ioexceptoin-keysize-too-big-in-windows-2003-server

Java, Programming, Ubuntu ,

A Quick Presentation on SEO and Adsense for DarGTUG

March 1st, 2011

DarGTUG as got a new likely permanent venue its COSTECH building at science. Thanks to COSTECH. I prepared a quick presentation on SEO and Adsense for the enthusiastic members.  Members actively took part in the discussion and from every meeting I keep on justifying myself there is a need for such a forum in Dar es Salaam, Tanzania. The members well realized that. I was very happy to share bit and pieces of information that I learned in my life. Its good that we transform what ever we learn… find the presentation here

http://dl.dropbox.com/u/12254041/seo_dargtug.pdf

Web ,