Wednesday, June 16, 2010

How to import pem type certificate and key to java key store

We tried lots of ways to do above but works only following for me.

PEM is the default format for OpenSSL.First convert the PEM format key and certificate in to DER format as following

openssl rsa -in input.key -inform PEM -out output.key -outform DER
openssl x509 -in input.crt -inform PEM -out output.crt -outform DER

Download KeyTool IUI tool
This tool let easily import the key and certificate to the key store

start the KeyTool IUI as the readme file.

Import the DER type key and certificate in to the key store as in following image. I used cacerts "/etc/java-6-sun/security/cacerts" as the key store.default password is "changeit".
The private key extension should be .der certificate extension should be .cer or .crt and key store should be .jks . If your files are not in that extensions you have to rename it.

How to enable ssl on tomcat or JIRA

Since you have already imported the key and certificate file to the key store do the following changes on ${tomcat/jira_home}/conf/server.xml

< Connector port="8443" maxHttpHeaderSize="8192" SSLEnabled="true"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keyAlias="" keystoreFile="/usr/lib/jvm/java-6-sun/jre/lib/security/cacerts" />

note: make sure to set the keystoreFile parameter. Default keystoreFile file is ~homefolder/.keystoreFile. if you change the keystore password set the keystorePass directive as well. /usr/lib/jvm/java-6-sun/jre/lib/security/cacerts path is a symlink for /etc/java-6-sun/security/cacerts file.

Monday, June 14, 2010

Google Android, Nexus One prefectly works in Sri Lanka

The biggest competitor of iPhone, Google nexus one works fine in sri lanka. The Phone comes with capacitive touch screen (nokia resistive touch screen, sucks ...:( ) giving same kind of a feeling like iphone and 3.7' diagonal with 800x480 resolution gives more space on the screen, So it can be suggest as a great mobile for full time Internet users :).
If you are planning to buy a nexus one in sri lanka its recommended to get it through some one from US,UK, Singapore, or Hong Kong. Trusting ebay, or amazon is risky and can't guarantee how much you will have to pay to the custom.
Still it seems any of the local vendors still haven't look in to nexus one market.

If you are buying a Nexus one you must buy a good data package otherwise you wont get the full benefit of using Nexus one. It wont work 3G/HSDPA Out of the box, you will have to add the APNs manually.

How to add Dialog and Mobitel APNs to enable 3G/HSDPA on nexus one

Go to Settings → Wireless & Networks → Mobile networks → Access point Names

click menu → New APN

add following according to your mobile operator.

Dialog WAP
Name = Dialog WAP

Dialog Broad Band
Name = Dialog Broad Band
APN = dialogbb

Mobitel Broad Band
Name = Mobitel Broad Band
APN = mobitelbb

keep the rest of the fields empty

You may have seen there are two versions of mobiles available based on the 3G frequency.
850 MHz, 1900 MHz, and 2100 MHz frequency
900 MHz, AWS, and 2100 MHz frequency

either version will works because 2100 MHz frequency range uses by SL mobile operators.

Following are the my awesome applications available with android.

Raging Thunder is a great car game running from accelerometer
connectBot is for if you are a terminal user.
Google Sky Map is another awesome app to discover night sky just by pointing your phone to space.
Shazam is amazing music discovery engine just by listing to the music
Documents to go is for Document, Spread sheet and powerpoint application.
Nimbuzz for connecting all social chats together including Skype.

YouTube search browser, facebook mobile app, Google map and goggles picture search engine, comes as built in apps on android OS.

It seems android community is fast growing than other mobile app communities. If you visit to android market place you can see the available apps developed for this short period of time. hopefully future will be better with android...