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

I have the “SSL error: unable to get local issuer certificate (preverify_ok=0;err=20;depth=0)”, but when playing in editor.