I would like to make the following curl call using RestTemplate in my Spring Boot application:
curl -v --tlsv1.2 --cacert /etc/pki_service/ca/cacerts.pem --cert /etc/identity/client/certificates/client.pem -key /etc/identity/client/keys/client-key.pkcs8 https://server.com
I have gone through a similar question: Using RestTemplate to send authorization certificates and Java HTTPS client certificate authentication, but not getting concrete steps to achieve exactly the same thing.
Could anyone please help here? Thanks.