Answered question

Why do I have a SSL error while checking the Dynatrace connection?

My Dynatrace is the onpremise version with HTTPS enabled but the certificate is signed with our own CA which is not by default trusted by browsers. So we added the ROOT certificate in the browser and there's no SSL warning anymore.

The issue is now with NeoLoad. When we check the connection of the Dynatrace monitor we get such error:

2021/02/24 09:52:47 WARN  - neoload.Controller: Exception occurs during the Dynatrace service retrieving. com.neotys.nl.monitor.newmonitor.dynamic.dynatrace.h: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
            at com.neotys.nl.monitor.newmonitor.dynamic.dynatrace.impl.b.a(b.java:197)
            at com.neotys.nl.monitor.newmonitor.dynamic.dynatrace.impl.b.a(b.java:146)
            at com.neotys.nl.h.a.d.a(d.java:88)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.neotys.nl.h.u.a(u.java:62)
            at com.neotys.nl.h.G.a(G.java:155)
            at com.neotys.nl.h.G.a(G.java:112)
            at com.neotys.nl.h.D.a(D.java:474)
            at com.neotys.nl.h.D.a(D.java:412)
            at com.neotys.nl.gui.a.T.a(T.java:109)
            at com.neotys.nl.gui.a.T.doInBackground(T.java:99)
            at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at javax.swing.SwingWorker.run(SwingWorker.java:334)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)

How could we get rid of this issue?

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

The error is coming from the NeoLoad JVM which has its own trusted store and it is not using the system one. So you also need to import your ROOT certificate (or your certificate) in the JVM trusted store.

This is the procedure:

. Open a command prompt (probably need to run as administrator):

  1.   Stop NeoLoad
  2.   cd "$NeoLoad_install_dir\jre\lib\security\"
  3.   Backup the default certs file in case from "cacerts" to  "cacerts.bak".
  4.   Add your certificate to the JVM trustore:
         ..\..\bin\keytool.exe -import -alias Dynatrace -file "c:\Users\USERNAME\YourCertificate.cer" -keystore cacerts -storepass changeit

  5. Start NeoLoad
  6. Try again the Dynatrace connection.

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful