'Karate - Not able to establish connection with pkcs12 keystore and password

I am not able to establish connection with pkcs12 keystore and password. I have a crt certificate and key file for the same. Converted the same to PFX using openssl and followed the instructions as per the link https://github.com/intuit/karate#x509-certificate-authentication. Still facing timeout issues. I try with crt and key file in postman settings, it does work.

* configure ssl = { keyStore: 'classpath:sdfnon-prod.pfx', keyStorePassword: '*****', keyStoreType: 'pkcs12' }

Can you please suggest me, if there is something else that needs to be configured.



Solution 1:[1]

I experienced a similar issue until a figured that the line

* configure ssl = { trustAll: true }

should go above the

* configure ssl = {...}

line in a feature file

Is interesting to me that adding the ssl info into the karate-config.js didn't need the trustAll flag set

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cmatal