srinidhi12
Feb 22, 2023Cirrostratus
F5 API access from java certificate error
Hi All, I am accessing the F5 API from java, but I get the certificate error on the http request:
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
But I have downloaded the certificate from the F5 portal and imported in the local java keystore.
sudo keytool -importcert -alias f5_api domain -file f5_api_com.crt -keystore cacerts
Still i get the above error. Please let me know I am missing anything.
Thanks!