Unable to find valid certification path to requested target caused by SSLHandshake Exception while trying to get data from API endpoint

Hi,

I am trying to get data from an API endpoint of opcenter. While running the script I am getting the error
"caused by IOException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"

I have installed the certificate and placed it in folder "C:\Program Files\Inductive Automation\Ignition\data\certificates\supplemental" . I have attached the code as well

url = "......................."
headers = {
    'Authorization': 'Bearer ****** '
} 

myClient = system.net.httpClient()
 
response = myClient.get(url,headers) 

print response.getText()

Thank you

Your server certificate may be self-signed or signed by an internal CA, and you might need to add that certificate or CA to Ignition's trust store.

https://docs.inductiveautomation.com/display/DOC81/Security+Certificates#SecurityCertificates-AddingSecurityCertificatesintoKeyStores

Please feel free to reach out to support at support@inductiveautomation.com if you need additional assistance.

Hi,
I'm facing the same issue.
I've created a project on Ignition which uses Kronos - UKG API. The API calls are working on my localhost but gives me the certification path error when I run it on company gateway.
How do I download the certificate?