- Revenera Community
- :
- FlexNet Embedded
- :
- FlexNet Embedded Knowledge Base
- :
- How to resolve FlexNet License Server Manager error “PKIX path building failed: sun.security.provide...
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
How to resolve FlexNet License Server Manager error “PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException”
How to resolve FlexNet License Server Manager error “PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException”
Symptoms:
After turning on HTTPS connection in FlexNet License Server Manager(FLSM) and trying to access the Devices or Reservations tab from the menu, the screen shows error : "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException".
Diagnosis:
The given error suggests that Java does not trust the certificate hence FLSM fails to connect to the server application (Local License Server).
Solution:
To resolve this, add the server side certificate to the Java truststore on the system where FLSM application is running.
Below is the sample command that will help to add the required certificate to Java truststore:
=>Export alias certificate from the keystore
keytool -export -alias [alias_name] -keystore keystore.jks -rfc -file server_cert.certs
=>Import certificate to the java trust store on which application is running.
keytool -import -trustcacerts -keystore [java_path]/lib/security/cacerts -storepass [password] -alias [alias_name] -import -file server_cert.certs
Once the required certificate is imported to the Java truststore, https connection should be successful to the Local License Server from FLSM application.