0

I have a public certificate, SSL client private certificate available in my local. I am not sure how to use these certificates and make API calls (Using Two-way SSL) in my Spring-MVC code (using Keystore/truststore).

Could someone help with a java example by using these certificates to call a REST API.

Certificates that i have are:

  1. public.cer
  2. sslclient.private
  3. private.passphrase
Itok
  • 23
  • 1
  • 6
  • Step 1 would be to repackage the certificates into two PKCS12 files so that they’re easily consumable from Java. Step 2 would be to add some examples of what you’ve tried to your question-m – Boris the Spider Oct 25 '21 at 05:53
  • @BoristheSpider Thank you. Just created a Keystore(.JKS) with the certificates and used the fingerprint while calling REST API and all worked fine. – Itok Oct 27 '21 at 05:35

0 Answers0