# Secured Websocket connection issue

**URL:** <https://forum.webostv.developer.lge.com/t/secured-websocket-connection-issue/7257>\
**Category:** Web App Development\
**Created:** [May 22, 2024, 7:38am UTC](https://forum.webostv.developer.lge.com/t/secured-websocket-connection-issue/7257 "2024-05-22T07:38:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raasesh](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Raasesh](https://forum.webostv.developer.lge.com/u/Raasesh)\
**Post date:** [May 22, 2024, 7:38am UTC](https://forum.webostv.developer.lge.com/t/secured-websocket-connection-issue/7257/1 "2024-05-22T07:38:21Z")

</div>

Hi, I am trying to connect to an LG TV secure websocket, but I am getting an SSLHandshakeException indicating that the server certificate is not trusted. Where can I obtain the root certificate to validate the certificate chain during the connection?

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [May 23, 2024, 7:24am UTC](https://forum.webostv.developer.lge.com/t/secured-websocket-connection-issue/7257/2 "2024-05-23T07:24:06Z")

</div>

Please refer to [TLS and Root Certificates](https://webostv.developer.lge.com/develop/specifications/tls). Thank you.

---

<div class="post-metadata">

**Author:** ![Raasesh](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Raasesh](https://forum.webostv.developer.lge.com/u/Raasesh)\
**Post date:** [May 29, 2024, 9:24am UTC](https://forum.webostv.developer.lge.com/t/secured-websocket-connection-issue/7257/3 "2024-05-29T09:24:18Z")

</div>

I’m encountering an SSL error even after installing all the certificates provided by the webOS TV Developer console:

```auto
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

```

Here are the issuer and subject details from the certificate chain:

```auto
Issuer: C=KR, ST=Seoul, L=Seoul, O=LG Electronics Inc., OU=HE Laboratory, CN=LG webOS TV Root CA/emailAddress=security-part@lge.com
Subject: C=KR, ST=Seoul, O=LG Electronics Inc., OU=HE Lab., CN=LGE SSG Intermediate CA

```

```auto
Issuer: C=KR, ST=Seoul, O=LG Electronics Inc., OU=HE Lab., CN=LGE SSG Intermediate CA
Subject: C=KR, ST=Seoul, O=LG Electronics Inc., OU=HE Lab., CN=LGE TV SSG

```

It seems the intermediate certificate is signed by the root certificate `LG webOS TV Root CA/emailAddress=security-part@lge.com`, but I cannot find this root certificate in the list provided in the console. How can I resolve this issue?

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [May 31, 2024, 6:30am UTC](https://forum.webostv.developer.lge.com/t/secured-websocket-connection-issue/7257/4 "2024-05-31T06:30:08Z")

</div>

You don’t need to install any files. Trusted root certificates are already installed on the TV. And the TV only accepts certificates of which the root is one of the trusted root certificates. If the root of your certificate does not exist in the list of trusted root certificates of the TV, you cannot use it. Thank you.
