i want to consume a REST service with my spring application. To access that service i have a client certificate (self signed and in .jks format) for authorization. What is t
Or you can just import the certificate to your JDKs cacerts, and all the HTTP clients using the jdk (rest template in your case) will use the certificate to make the REST call.
keytool -import -keystore $JAVA_HOME/jre/lib/security/cacerts -file foo.cer -alias alias
P.S: Don't forget to restart your server after successful import. Default password for keystore - changeit