Secure WebSocket (WSS) with HTTPS localhost SSL certificate?

后端 未结 1 1993
执念已碎
执念已碎 2021-01-23 15:19

I am a little new to this whole WebSocket and SSL certificate.

So I have created my own WebSocket server on Android side and the website is the client. I was able to mak

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-23 15:51

    We faced a similar problem, our solution was to register a subdomain to one of our domains with an A record to 127.0.0.1 and get a certificate for that domain.

    • local.example.com -> A record to 127.0.0.1
    • SSL certificate requested for local.example.com

    I'm afraid this answer is too late for you however, it can be helpful for others finding this article.

    0 讨论(0)
提交回复
热议问题