Answered question

When i test the connection of my NTS from NeoLoad i got a certificate error. How can i fix that?

I configured my NTS so it can be reached through HTTPS. In our company we use our own certificate signed by our own ROOT authorities. So when i check the connection from NeoLoad i get that error: PKIX path building failed: unable to find valid certification path to requested target
    at javax.swing.SwingWorker$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$

I know it's due to our certificate but how can i tell NeoLoad to trust it?

When you check the connection the JRE embedded in NeoLoad is checking if the certification chain is valid. the JRE embeds the well known ROOT authorities and yours is unkown. That's why the certification chain is not valid. That means that your certificate is self-signed.

To workaround that issue you need to either import the certificate used by your NTS server and/or your ROOT authorities certificate.

This is the procedure:

  1. Go into that folder <NeoLoad_install_dir>\jre\lib\security
  2. Backup the cacerts file into cacerts.back in case
  3. Run the command:

    ..\..\bin\keytool.exe -import -alias NTS -file "Mycertif.cer" -keystore cacerts -storepass changeit

    where Mycertif.cer is either your ROOT certificate authorities or the certificate used by your NTS. If needed you import both with two different alias name.

  4. Accept the import when prompted
  5. Start NeoLoad
  6. Check again the connection.

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful