During the development of a Java webservice client I ran into a problem. Authentication for the webservice is using a client certificate, a username and a password. The clie
.CER files are certificates and don't have the private key. The private key is provided with a .PFX keystore file normally.
If you really authenticate is because you already had imported the private key.You normally can import .CER certificates without any problems with
keytool -importcert -file certificate.cer -keystore keystore.jks -alias "Alias"