Hello friends,
I found, http://www.freecerts.com providing free root certificate for Mobile Devices.
So i planed to use that certificate with my mobile device.
For Signed MIDlet, i followed these steps:
1) Generate Key
keytool -genkey -alias <alias-name> -keyalg RSA -keysize 512 -validity 360 -keypass <passsword> -keystore <keystore-file-name.sks> -storepass <password>
2) Fetch the Certificate
keytool -certreq -keyalg RSA -file <certificate-file-name.cer> -alias <alias-name> -storepass <password> -keypass <passsword> -keystore <keystore-file-name.sks>
from these two steps i got ".cer" file.
By using http://www.FreeCert.com i got the new CA.
3) Import
keytool -import -trustcacerts -keyalg RSA -file <newCER-file.cer> -alias <alias-name> -storepass <password> -keypass <passsword> -keystore <keystore-file-name.sks>
But when i am trying to import the certificate i am getting this error:
Keytool error: java.lang.Exception: Input not an X.509 certificate.
can anyone tell me solution for this problem?
One more:
FreeCerts providing a link to download Root CA [ http://www.freecerts.com/index.wml ], but when i am trying to download that Root CA i am getting "CERTIFICATE NOT SUPPORTED" message. How can i solve this problem??????????

Reply With Quote

