When playing in the editor WebSocket connection successful but failed when playing in packaged, why?

  1. copy cacert.pem to [unrealProject]/Content/Certificates
  2. project setting > packaging > Additional Non-Asset Directories to Package > add item “Certificates”

it works ~

my env
unreal version = 5.0.3
use webSocket ( c++ )
win or mac no issue
but packaging ios has issue
issue = LogWebSockets: Warning: Lws(Error): SSL error: unable to get local issuer certificate (preverify_ok=0;err=20;depth=2)

1 Like