# WebDev Self Signed Cert on Localhost

**URL:** <https://forum.inductiveautomation.com/t/webdev-self-signed-cert-on-localhost/54708>\
**Category:** Ignition\
**Created:** [January 6, 2022, 1:21am UTC](https://forum.inductiveautomation.com/t/webdev-self-signed-cert-on-localhost/54708 "2022-01-06T01:21:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [January 6, 2022, 1:21am UTC](https://forum.inductiveautomation.com/t/webdev-self-signed-cert-on-localhost/54708/1 "2022-01-06T01:21:46Z")

</div>

I am trying to setup my local dev environment so I can test out some WebDev calls that are setup to require HTTPS. Everytime I try making a post call to the WebDev resource I receive the message “unable to find valid certification path to requested target”

If I turn require HTTPS off and change the url to HTTP the post works as expected.

I have followed the steps in this post to install a self signed cert on my local dev computer, but that does not seem to fix it. [https://forum.inductiveautomation.com/t/server-certificate-is-self-signed/42420](https://forum.inductiveautomation.com/t/server-certificate-is-self-signed/42420)

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [January 6, 2022, 5:13pm UTC](https://forum.inductiveautomation.com/t/webdev-self-signed-cert-on-localhost/54708/2 "2022-01-06T17:13:57Z")

</div>

Here is what I figured out to get it working. After using the gateway page to setup the self signed certificate you need to import the cert into your computers Third-Party Root Certification Authorities.

1. Go to your computers Manager Computer Certificates

2. Go to the Certificates folder under Third-Party Root Certification Authorities  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/f/5f60907cdff79d985d291a83cd9f444d03b57448.png)

3. import the certificate from your ignition install directory %ignitionInstallDirectory%\webserver\csr.pfx

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [January 7, 2022, 8:40pm UTC](https://forum.inductiveautomation.com/t/webdev-self-signed-cert-on-localhost/54708/3 "2022-01-07T20:40:11Z")

</div>

I am still having a problem from the Ignition designer. I receive the following error when trying to send a request to the secure web service url on my local machine through the designers script console.

> Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I have tried adding the sslCert to the cacerts of the gateway in

> C:\Program Files\Inductive Automation\Ignition\lib\runtime\jre-win\lib\security\cacerts

And I have also tried adding it to the cacerts of my designer runtime at

> C:\Users%username%\AppData\Roaming\Inductive Automation\Designer Launcher\jre\lib\security\cacerts

I am able to successfully get to the secure web service url using chrome and postman, but not ignition designer.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [January 7, 2022, 9:38pm UTC](https://forum.inductiveautomation.com/t/webdev-self-signed-cert-on-localhost/54708/4 "2022-01-07T21:38:39Z")

</div>

This seemed to fix the problem. Import the SSL cert into the designer launcher settings.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/b/6b681e1ffc0a2ca1e245b0e79f12e25d03862440.png)
