I got stuck lately trying to understand how to setup environment in IntelliJ for some specific API which requires .key
.crt
.p12
and password/passphrase
. While I got everything setup correctly in Postman I cant really set it up in my Selenium framework.
I was told to use cURL
commands to work it out but that's not fully working for me...I'm using this command
curl.exe -v --key X.Y.key --cert X.Y.crt -H 'Content-type: application/json' -d {} https://endpoint.xxx
After running this command I'm prompted to "Enter host password for user 'tFormat':"
Is this my username (different from X.Y.key name?)
From my company I received .key
/.crt
/p12
file including passphrase all working in Postman but when I tried to type my password I cant see anything typing but anyway I'm getting:
* Connected to endpoint.xxx (11.22.33.44) port 443 (#0)
* schannel: disabled automatic use of client certificate
* schannel: Failed to import cert file X.Y.crt, last error is 0x80092002
I also tried --user "name:password"
(which should be "tFormat:passphrase"
or "X.Y:passphrase"
) with different configurations of name and password but with no positive results.
Any ideas what am I doing wrong or anyway how can I use command line code inside my methods?
Thanks