'No PrivateKey found for alias:'0‚' error in Jmeter for REST API

We are implementing REST API in Jmeter. API has SSL certificate, Client id, Secret Key along with a Basic Authorization mechanism.

We are facing "javax.net.ssl.SSLException" & "No PrivateKey found for alias:'0‚'" errors.

We did the below settings in JMeter-

  1. Added Client Certificate and password in the system.properties file
  2. Added Client Id & Secret Key in User Parameters
  3. Basic Authorization Credentials in HTTP Authorization Manager.

We are getting below response in JMeter logs-

2022-03-29 17:06:03,625 INFO o.a.j.u.SSLManager: KeyStore created OK 2022-03-29 17:06:03,625 WARN o.a.j.u.SSLManager: No password provided, and no GUI present so cannot prompt 2022-03-29 17:06:03,625 INFO o.a.j.u.SSLManager: Total of 1 aliases loaded OK from keystore D:/Projects /APITesting.pfx

and facing "javax.net.ssl.SSLException" & "No PrivateKey found for alias:'0‚'" errors.

Pls help us if we are missing anything in this.

Thanks in advance!



Solution 1:[1]

No password provided, and no GUI present so cannot prompt

It means that you didn't supply the password to the keystore where your certificates live via javax.net.ssl.keyStorePassword JMeter System Property

Please double check your system.properties file and ensure that the password for the keystore is correct.

More information:

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 Dmitri T