I have a requirement to make third party rest api call over https. I am wanting to use feign client inside spring Boot application. I have an idea about feign client and how to use it to make api calls. But I am not sure how to pass the certificate file and secret key. Below is sample python code extract that I wanted to achieve using feign client. Can some help me to incorporate the code marked as **.
certificate_file = 'example.com.pem'
certificate_secret= 'exampleserver.key'
**context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
context.load_cert_chain(certificate_file, certificate_secret)
conn = http.client.HTTPSConnection("hostname", context=context)**
payload = "{<JSON payload>}"
headers = {
'Content-Type': "application/json",
}
conn.request("POST", "api/example/setInfo", payload, headers)