How can I add SSL support to my Qt application?

For legal reasons, Qt doesn’t ship with SSL. Only the Qt module that wraps SSL is included in the binaries. See the documentation [qt.nokia.com].

If you want to include SSL support, you must first obtain OpenSSL from here [openssl.org] and make sure the paths to its include and lib directories are available in the environment when building Qt. OpenSSL support should then be available by default when building Qt.

1 comment

December 1, 2010

Picture of Matt Matt

Lab Rat

You can check if a system supports SSL (and has the necessary OpenSSL libraries) at runtime using QSslSocket::supportsSsl() [doc.qt.nokia.com] .

Write a comment

Sorry, you must be logged in to post a comment.