I am using the following steps to generate Keystore and then corresponding CSR, then have sent the CSR to godaddy for signing and received respective certificate files. But when I try to import the received .crt file to the keystore i get
"keytool error: java.lang.Exception: Certificate reply does not contain public key for ".
Following are the list of steps that i followed in the process.
1.keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore your_site_name.jks (and then added the reqquired information)
2.keytool -certreq -alias server -file csr.txt -keystore your_site_name.jks
// sent the csr to godaddy and received the crt files
3.keytool -import -alias server -file your_site_name.crt -keystore your_site_name.jks
// this is the step in which the am getting the above error
"keytool error: java.lang.Exception: Certificate reply does not contain public key for ".