On Sunday, 20 August 2017 05:10:14 PDT Christian Gagneraud wrote: > On 20 August 2017 at 21:03, Tom Isaacson <tom.isaac...@navico.com> wrote: > > I have a websocket server that was written a while ago. I want to convert > > it to use QWebSocket then move it to port 443 and add SSL/TLS support. > > The first part is simple but I'm not sure about the second. There's an > > example on the Qt website: > > http://doc.qt.io/qt-5/qtwebsockets-sslechoserver-example.html > > > > but it loads two files localhost.cert and localhost.key. Where do these > > come from? Is there a tutorial or blog post that explains how they're > > generated? > You can generate these file with the openssl command. > Check, eg > https://www.digitalocean.com/community/tutorials/openssl-essentials-working > -with-ssl-certificates-private-keys-and-csrs section "Generate a Self-Signed > Certificate"
Please contact your SSL certificate provider and obtain certificates for your server. If you don't have one, I recommend Linux Foundation's Let's Encrypt project. https://letsencrypt.org I prefer the scripts that obtain certificates using DNS01. The obtention is entirely autoated and free. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest