title: Linux/Qt - Error creating SSL Context (error: 140A90C4 ...)
body: <p>Trying to set up a TCP-Server with a SSL-Encryption via QSslSocket in Qt5 on a Ubuntu 17.04 System. When I connect with a client QAbstractSocket throws out the following error:</p>
  
  <p><em>Error creating SSL context (error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed, error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed)</em></p>
  
  <p>Here are some things I already found in other threats:</p>
  
  <pre><code>qDebug() &lt;&lt; "SSL Support: " &lt;&lt; QSslSocket::supportsSsl();
  qDebug() &lt;&lt; "Compile Time: " &lt;&lt; QSslSocket::sslLibraryBuildVersionString();
  qDebug() &lt;&lt; "Run Time: " &lt;&lt; QSslSocket::sslLibraryVersionString();
  </code></pre>
  
  <p>gives out:</p>
  
  <pre><code>SSL Support:  true
  Compile Time:  "OpenSSL 1.0.2g  1 Mar 2016"
  Run Time:  "OpenSSL 1.0.2g  1 Mar 2016"
  </code></pre>
  
  <p>When I run <code>openssl version</code> in the terminal, I get <code>OpenSSL 1.0.2g  1 Mar 2016</code> as answer.</p>
  
  <p>Anyone any idea how to fix that error?</p>