I'm looking for a way to implement the following mTLS authenticated request in Java:
PFX=x509.pfx
curl --location --request POST 'https://example.com/' \
--cert-type p12 \
--cert "$PFX:mySecretPassword"
I'm using a x509 pfx file encrypted with a password.