PKIX exception on secure websocket connection

I think I know the answer, but is there an option that can be passed to
InterfaceUtils.webSocketConnect
to tell it to ignore certificate issues?

I'm pretty sure it can be done "globally" in Java (e.g. jmeter does it).
But can hubitat do this.

Reason: trying to write a Samsung TV driver for a 2019 model TV and it's falling at the first hurdle -connecting to the tv to get a token

First....
webSocketConnect has been deprecated... see Developer Documentation - Websocket Interface

This will not affect the PKIX error, but best not to use deprecated functions in a new driver...

Second...
You are trying to use the secure websocket protocol... 2016+ Samsung TVs support secure and non secure websockets. You should be able to connect to a Samsung TV with "ws:<ip_address>:8001" as the URI...