Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have purchased a certificate from godaddy, which is now in .pfx format. I tried to convert it into .cer using Internet Explorer and Firefox. I tried to to sign midlet using converted .cer, but I get following error message:

The KeyStore does not contain private key associated with this alias !! Cannot sign

How to get work done?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There is a Stackoverflow Question on this with a OpenSSL based answer.

from there,

openssl pkcs12 -in xxxx.pfx -out mycertificates.crt -nokeys -clcerts
share|improve this answer
    
"java.security.cert.certificateParsingException Invalid der encoded data." getting this message. –  Jigar Joshi Apr 28 '10 at 4:23
    
i tried doing this but when i select export private key , i am getting .cer (DER encoded) option disabled . and midletsigner utility need provatekey anyhow.. –  Jigar Joshi Apr 28 '10 at 4:39
    
solved this issue with.. Keytool –importkeystore –srckeystore “The_Name_Of_The_PFX_file.PFX” –destkeystore Name_For_The_Key_store.jks –srcstoretype PKCS12 – deststoretype JKS –  Jigar Joshi Apr 28 '10 at 6:19
    
now midlet is signed..but root certificate is not there in device i think as its showing domain as :"Untrusted" –  Jigar Joshi Apr 28 '10 at 6:20
    
i have installed its root certificate certificate.. using this symcaimport.redelijkheid.com/ now settings>security>certificates>godaddy>select use> there are three options server auth. cross certi. app signing among which app sign is disabled.. and when i install the app and click on it it shows invalid application "Delete ?" rot certificate i have installed is from certs.godaddy.com/anonymous/repository.seam Go Daddy Class 2 Certification Authority Root Certificate (DER Format) –  Jigar Joshi Apr 28 '10 at 9:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.