Figured it out with this helpful article:
Open command line, then goto the java security folder:
cd c:\Program Files\Java\jre1.8.0_291\lib\security
Run:
..\..\bin\keytool.exe -import -alias localhost -trustcacerts -file c:\certs\localhost.cer -keystore cacerts
The default password for the cacerts keystore is "changeit"
Tags
Java