I am trying to do an HTTPS call to a client using a pfx Certificate.
I am able to connect to their system but am don’t see a valid response. Instead, the response says “Neither certificate nor password was provided”.
I have clients PKCS 12 certificate imported to the DEFAULT_IS_KEYSTORE and *.der certificates in truststore.
Import the trust certificate from IS → Security → Certificates → Configure Client Certificates. You can set the usage as per your need. SSL Auth if thats what you are looking for.
We have been doing the HTTPS call to a Microsoft API even before but they never asked for the certificate till now.
Now we have to call them to a new URL and pass our certificate, they have configured the thumbprint of same certificate at their end.
We were doing a custom http call before, but now we are doing the http call as below
pub.security.keystore:setKeyAndChain
pub.client:http
pub.security:clearKeyAndChain
But still getting the error as : com.wm.net.NetException: [ISC.0064.9314] Authorization Required: Client certificate or AAD Bearer token not found in request.
We have our certificate configured and mapped with our HTTPS port in Security > Keystore and we have CA Cert in truststore.
Even we have configured the certificate of the API which we are making HTTPS call to in Security > Certificates > Configure Client Certificates and mapped to a user which is part of group Administrator .
In Security > Certificates, I have the same Keystore and TrustStore as we have in Security > Keystore.
Still not sure what else required to send them the certificate so that they can verify the HTTPS call with certificate against the thumbprint of same certificate.
Though here from pub.security.keystore:setKeyAndChain no certificate is produced and not sure if it is produced from services like pub.security.keystore:getKeyAndChain or pub.security.keystore:getTrustedCertificates, where to pass it in pub.client:http
So when you say, adding new keystore alias in IS keystore worked for me, which one did you add? Because for us the keystore is already configured having our organization certificate in PKCS12 format.