Hi guys.
I have a private server which provides some api. Also I have a *.p12 certificate file for signing requests to private api. How can I prepare gatling to use this certificate for signing api requests?
Command for exporting p12 to jks: keytool -importkeystore -srckeystore path_to_cert_directory/certificate.p12 -destkeystore path_to_cert_directory/certificate.jks -srcstoretype pkcs12
P.S. I tried some cases of exporting p12 file to jks and gatling config but got nothing for all of they. First case gave me “Connection timed out” error. Second gave “No trusted certificate found” (see exception below)
P.S.S. gatling version is 1.5
Thanks in advance!
sun.security.validator.ValidatorException: No trusted certificate found
at sun.security.validator.SimpleValidator.buildTrustedChain(Unknown Sour
ce) ~[na:1.6.0_38]
at sun.security.validator.SimpleValidator.engineValidate(Unknown Source)
~[na:1.6.0_38]
at sun.security.validator.Validator.validate(Unknown Source) ~[na:1.6.0_
38]
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown So
urce) ~[na:1.6]
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(
Unknown Source) ~[na:1.6]
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(
Unknown Source) ~[na:1.6]
Wrapped by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) ~
[na:1.6]
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source) ~[na
:1.6]
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) ~[na:
1.6]
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) ~[na:
1.6]
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unkno
wn Source) ~[na:1.6]
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown
Source) ~[na:1.6]
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source) ~
[na:1.6]
at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Unknown Source) ~[na:1.
6]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0
_38]
at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Unknown Sou
rce) ~[na:1.6]