[Interest] QWebSocket support for SSL
thiago.macieira at intel.com
Sun Aug 20 18:58:31 CEST 2017
On Sunday, 20 August 2017 05:10:14 PDT Christian Gagneraud wrote:
> On 20 August 2017 at 21:03, Tom Isaacson <Tom.Isaacson at 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
> -with-ssl-certificates-private-keys-and-csrs section "Generate a Self-Signed
Please contact your SSL certificate provider and obtain certificates for your
If you don't have one, I recommend Linux Foundation's Let's Encrypt project.
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
More information about the Interest