# Installed certs, can't connect, even though gateway running

**URL:** <https://forum.inductiveautomation.com/t/installed-certs-cant-connect-even-though-gateway-running/12001>\
**Category:** Archived Topics\
**Created:** [August 3, 2016, 3:29pm UTC](https://forum.inductiveautomation.com/t/installed-certs-cant-connect-even-though-gateway-running/12001 "2016-08-03T15:29:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [August 3, 2016, 3:29pm UTC](https://forum.inductiveautomation.com/t/installed-certs-cant-connect-even-though-gateway-running/12001/1 "2016-08-03T15:29:20Z")

</div>

[scada.topinc.us](http://scada.topinc.us) unexpectedly closed the connection.

from chrome, anyone see this before?

Thanks,

Jake

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [August 3, 2016, 9:08pm UTC](https://forum.inductiveautomation.com/t/installed-certs-cant-connect-even-though-gateway-running/12001/2 "2016-08-03T21:08:13Z")

</div>

Got it fixed, here are the commands after you use lets encrypt to generate the certs:

sudo openssl pkcs12 -export -in /etc/letsencrypt/live//fullchain.pem -inkey /etc/letsencrypt/live//privkey.pem -out pkcs.p12 -name tomcat

keytool -importkeystore -deststorepass ignition -destkeypass ignition -destkeystore ssl.key -srckeystore pkcs.p12 -srcstoretype PKCS12 -srcstorepass ignition -alias tomcat

sudo keytool -import -trustcacerts -alias inter -keystore ssl.key -file /etc/letsencrypt/live//chain.pem

sudo keytool -import -trustcacerts -alias root -keystore ssl.key -file dstrootx3.pem

\*Note - Make sure to replace with your url, and the dstrootx3.pem file can be downloaded from the lets encrypt website
