keytool error: java.lang.Exception: Public keys in reply and keystore don't match
问题 I have this problem when I import a certification file into keystore: keytool error: java.lang.Exception: Public keys in reply and keystore don't match I do this this operation: 1) create my keystore on the server : keytool -genkey -keystore C:\keystore\keystore -alias jboss -keyalg RSA 2) I have domain.pfx and convert it whit this command: openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.cer openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain_encrypted.key openssl rsa -in