# API Endpoint Certs

**URL:** <https://forum.inductiveautomation.com/t/api-endpoint-certs/55461>\
**Category:** Ignition\
**Created:** [January 28, 2022, 12:03am UTC](https://forum.inductiveautomation.com/t/api-endpoint-certs/55461 "2022-01-28T00:03:44Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [February 21, 2022, 6:42pm UTC](https://forum.inductiveautomation.com/t/api-endpoint-certs/55461/9 "2022-02-21T18:42:10Z")

</div>

I am going to merge this thread into this:

> [@WebSocket Client](https://forum.inductiveautomation.com/t/websocket-client/44447/20):
>
> You are discarding the return value from .buildAsync(). Don’t do that. You need it to .get() the finished websocket object.

The summary here is that by moving this to a gateway script (as opposed to running it all from the script console) overcomes the error named:

> unable to find valid certification path to requested target

Thanks,

Nick

---

_[View the full topic](https://forum.inductiveautomation.com/t/api-endpoint-certs/55461)._
