Tuesday, February 16, 2010

Installing SSL Certificate on Tomcat

Recently I installed SSL certificate on tomcat. Thought below information might be helpful for others installing SSL certificate on tomcat. There are two ways of installing SSL certificate in tomcat:
  • CA gives only certificate against CSR.
  • CA gives you certificate and private key

CA gives only certificate against CSR

In this scenario, you create CSR request using jdk keytool and send CSR file to CA (Certificate Authority). Then CA send gives you the certificate to import. In this scenario you need to perform below two steps:
  • Download chain certificate from CA where you obtained the certificate and import it in new keystore with following command:
  keytool -import -alias root -keystore  -trustcacerts -file 
  • Import CA provided certificate into the same keystore as used above:
keytool -import -alias tomcat -keystore  -trustcacerts -file 

CA gives you certificate and private key

In this scenario CA provides you two thing i.e private key and certificate. you need to perform below two steps:
  • Download chain certificate from CA where you obtained the certificate.
  • Till now you have 3 things namely private key, certificate and chain certificate. Use following command to make your keystore:
openssl pkcs12 -export -in mycert.crt -inkey mykey.key -out mycert.p12 -name tomcat -CAfile myCA.crt -caname root -chain 
For openSSL install microsoft tool available at http://www.slproweb.com/products/Win32OpenSSL.html      

Wednesday, February 10, 2010

DragonFireSDK pre-release Vs Monotouch Review by IPhone developer

I am IPhone developer and always looking for ways to get rid of Objective-C syntax. I have evaluated Monotouch and now evaluating DragonFireSDK both. Below is what I found about both alternatives:
  • The good think about DragonFireSDK is that it provides complete development environment in C++ on windows machine
  • DragonFireSDK hides typical IPhone application architecture when writing in Objective-c in Xcode, while MonoTouch doesn't hide the architecture of typical IPhone application. In Monotouch developer must follow Iphone application typical design. It only provide c# syntax but design is same as that of IPhone typical application.
  • Niether DragonFireSDK nor Monotouch provides IPhone objective-C Core-Data API features like things that save our lots of time in developing app in IPhone when playing with backend storage.

Sunday, February 7, 2010

IPhone Development on Windows Plateform

Some great news for IPhone developer. Now IPhone developer can use windows machine to do IPhone development.
The DragonFireSDK will let you create iPhone Apps in Windows in C++. You can run them on a provided simulator, debug using Visual Studio (not sure if it's full or Express versions) and install it on a (shush) jailbroken iPhone.

However where it gets interesting is that you can use it to put apps in to the App Store and get paid. You can do this is in the traditional way as a registered developer(and pay $49.95 to Zimusoft for their Windows sdk) or do it for free through Zimusoft who distribute it as part of their brand but pay you all (they take nothing) of the royalties through paypal

Wednesday, February 3, 2010

Google Software updates nexus one with Multitouch !!

Great News!
 
Google has announced software upgrade for Nexus One smart phone. 
Nexus One’s software update includes some enhancements, fixes and great new features describe below:

Multi-touch /Pinch-to-zoom Functionality: New pinch-to-zoom mechanism is included which was missing before and now it works for phone’s browser, gallery and maps. http://www.geek.com/articles/mobile/google-updates-nexus-one-with-multitouch-2010022/

Google Goggles: It will be available directly on your mobile phone and you can launch it from All Apps menu. So, you can use Nexus One’s camera to start searching the web. (http://www.google.com/mobile/goggles)

Google Maps: The updated Maps application version 3.4 is available with many new enhancements which include: Starred items synchronized, Search suggestions, Night mode in Google Maps Navigation

3G Connectivity: This fix helps some users who have problems with 3G connectivity.

Note: Nexus One’s software update will be rolled out on the air and users may receive it until the end of the week.

Thanks and Regards
Imam Raza

Sunday, January 24, 2010

Installing Android problem (failed to rename directory)

Recently I started development on Android platform. When I first installed Android sdk 2.1 through SVD Manager, I encounter a very strange error below. The major problem with this error is that it occurs after taking longer time of downloading the component. For my internet connection it took about 23 min which it requires for downloading the component. After downloading the component it renames the tool folder which causes this error to occur :

Downloading Android SDK Tools, revision 4
Installing Android SDK Tools, revision 4
Failed to rename directory E:\android-sdk_r3-windows\tools to E:\android-sdk_r3-windows\temp\ToolPackage.old01
-= Warning ! =-
A folder failed to be renamed or moved. On Windows this typically means that a program is using that folder (for example Windows Explorer.) Please close all running programs that may be locking the directory 'E:\android-sdk_r3-windows\tools' and try again.
Skipping 'SDK Platform Android 2.1, API 7, revision 1'; it depends on 'Android SDK Tools, revision 4' which was not installed.
Downloading SDK Platform Android 2.1, API 7, revision 1

First I thought that I mistakenly opened tool folder in some other application so I started SVD manager again which took me again 23 min and after that I got the error again. Very frustrating. Since I was using windows 7 so I thing there might be some problem with windows 7. I started googling on this problem and then reviewing few ppls work around I came to know that this is typical problem with Antivirus. So when I turned off my Antivirus the error resolved. Hope my this post would definitly helps to novice you are just entering in the realm of the android development.

Monday, January 18, 2010

Nexus One Vs IPhone Review

I have been using IPhone for some time and recently after the arrival of Nexus, I got chance to use it. Below are my unbiased review about both IPhone and Nexus as an end user.
  • Nexus doesn't have multi-touch feature while IPhone already had it. This seems to me the major feature missing in Nexus. This would make it hard atleast for IPhone community to use it.
  • Nexus user feeling experience cannot compare with IPhone. IPhone provide much smoother and sophisticated user experience.
I was planning to buy nexus but now after using it in my company I would not want to purchase it. It needs to much mature for user experience as compare to IPhone