Position forwarding failed: 0 pending - unable to find valid certification path to requested target - SunCertPathBuilderException

abdo444449 months ago

Hiii,,

I am facing this issue:

Position forwarding failed: 0 pending - unable to find valid certification path to requested target - SunCertPathBuilderException
    <entry key='forward.enable'>true</entry>
    <entry key='forward.type'>json</entry>
    <entry key='forward.url'>https://localhost:xxxx/forwarding/positions</entry>

traccar not have ssl and just work as http server.
this issue happen after change my nodejs server to https

how can overcome this issue?

Jack9 months ago

I think that you have to trust ssl certs of nodejs server (likely a self-signed cert) on traccar, try to add it into truststore of the JVM which run traccar

abdo444449 months ago

thanks @Jack,

"try to add it into truststore of the JVM which run" how I could do this? I not have experiance in java

Anton Tananaev9 months ago

Is your HTTPS certificate valid?

abdo444449 months ago

yes it valid, it is generated locally using openssl

Anton Tananaev9 months ago

Locally? It makes it invalid.

abdo444449 months ago

ok

Jack9 months ago

are you on Linux or Windows ?

abdo444449 months ago

windows

Jack9 months ago

i don't have a good familiarity with traccar windows installations, i never done one.

As far as you know, does the setup install a dedicated JVM under the traccar path?

If so, look for a file called "cacerts" (is a JKS Keystore) under the lib/security folder of the JRE in dedicated JVM under the traccar path, you can open it with a tool like this:

https://keystore-explorer.org/downloads.html

The default password of the store should be 'changeit' .

You need to add the self-signed certificate of your nodejs server, in the above keystore, as trusted