'What are trustAnchors ? and How do I configure it?
I was recently assigned a java project. I am not very familiar with Java. I have been trying to build the projects but I am having the following error:
the trustAnchors parameter must be non-empty
at java.base/java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
at java.base/java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
at java.base/java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
at java.base/sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:94)
I am confused on how to set the trustAnchors
parameter. I am not sure if this is related but I can also only see the keystore certificate when I am an admin as seen in the picture linked below:
Thanks
Solution 1:[1]
turns out that spring-boot was using a different version java. It was therefore not finding the cacert file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ParanoidAndroid |