Reputation: 487
I am using Karate framework. As the server requires to do so, I am trying to connect to it with mutual auth
as described here:
https://github.com/intuit/karate#x509-certificate-authentication
* configure ssl = { trustStore : 'classpath:certstore.pfx', trustStorePassword: 'certpassword', trustStoreType: 'pkcs12' };
I am getting this error:
javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
Does anyone knows how to skip the SSL certificate verification
like I do in Postman?
Upvotes: 2
Views: 2907
Reputation: 487
I should have used keystore
instead of trustStore
.
* configure ssl = { keyStore : 'classpath:certstore.pfx', keyStorePassword: 'certpassword', keyStoreType: 'pkcs12' };
Upvotes: 1
Reputation: 58088
This should use HTTPS but ignore the certificate:
* configure ssl = true
Docs: https://github.com/intuit/karate#configure
Upvotes: 1