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

abdo44444 a year 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?

Jack a year 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

abdo44444 a year 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 Tananaev a year ago

Is your HTTPS certificate valid?

abdo44444 a year ago

yes it valid, it is generated locally using openssl

Anton Tananaev a year ago

Locally? It makes it invalid.

abdo44444 a year ago

ok

Jack a year ago

are you on Linux or Windows ?

abdo44444 a year ago

windows

Jack a year 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