I've recently purchased a certificate from GoDaddy for coding signing an Adobe Air application.
I generated a CSR (Code Signing Request) file and sent it to them. They have send back a .spc certificate file (PKCS #7 format).
I'm using keytool that comes with Adobe Air. Here are the commands that I have used.
"C:\Program Files (x86)\Adobe\Flex Builder 3\jre\bin\keytool.exe" -genkey -alias codesigncert -keypass password123 -keyalg RSA -keysize 2048 -dname "CN=displayname,O=companyname,C=US,ST=state,L=city" -keystore codesignstore
Import certificate into keystore:
"C:\Program Files (x86)\Adobe\Flex Builder 3\jre\bin\keytool.exe" -import -alias codesigncert -file cert.spc -keystore codesignstore
After running this command the error I get is:
keytool error: java.lang.Exception: Certificate reply does not contain public key for <codesigncert>
What could have gone wrong?
The guide that I am following is this one: http://help.godaddy.com/article/4780