Yaak Logo
Yaak
Feedback/"Validate TLS Certificates" setting not respected for WebSocket connections

"Validate TLS Certificates" setting not respected for WebSocket connections

Ben Ben Baron·a year ago
Up NextBug

Hi I just installed Yaak to test it out with a PiKVM by accessing it’s API. The PiKVM by default uses a self-signed SSL certificate so I unchecked “Validate TLS Certificates” in the Workspace settings. This worked fine for an HTTP request, but when I tried a WebSocket endpoint I got a certificate validation error.

I realize that WebSocket support was only just added, so hopefully it’s as simple as that code path needing to check the setting or something like that.

Here are the logs:

[2025-02-26][20:13:24][INFO][yaak_ws::connect] Connecting to WS wss://10.5.50.194/api/ws?
[2025-02-26][20:13:24][ERROR][rustls_platform_verifier::verification::apple] failed to verify TLS certificate: invalid peer certificate: Other(OtherError("“localhost” certificate is not standards compliant: -67901")) 
[2025-02-26][20:13:24][INFO][yaak_ws::commands] Websocket connection closed

Macv2025.1.2 (20240226.062659)

Comments (1)

Sign in to leave a comment.

Ben Ben BaronOP

I forgot to add the message displayed in the UI:

WebSocketErr(Io(Custom { kind: InvalidData, error: InvalidCertificate(Other(OtherError("“localhost” certificate is not standards compliant: -67901"))) }))

Type to search feedback...