I am given a certificate by my api provider which are .crt file and .p12 file.
I generated ca-cert.pem file from .crt file and client-cert.pem and client-key.pem file from .p12 file using openssl as required by api.
I am also provided with username password for basic authentication by my api provider.
My question is how can I connect to server url https (rest) using these certificate and credentials using Java.