I'm trying to recreate a cURL command with certificates in apache HttpClient:
curl --key ~/mykey.pem --cert ~/mycert.chain.pem "url.com"
The python equivalent being:
requests.get("url.com", cert = ('~/mycert.chain.pem', '~/mykey.pem')
From what I've seen so far apache HttpClient makes this seemingly very complicated. I've tried an approach based on this with a similarly non-working result. The comments from that thread and other searches online require converting the pem files to jks. Other examples like this one show a complicated process of setting up a keystone using jks.
Is there a very simple way to achieve the above curl / python requests using HttpClient without needing to convert pem -> jks?