[Qt-interest] QT and SSL certificates

Thiago Macieira thiago.macieira at trolltech.com
Wed Feb 18 10:58:06 CET 2009


Andreas Roth wrote:
>Good morning,
>
>i'm using QT version 4.4.3 and i have a problem concerning certificates.
>My apache2 webserver is set up with a SSL site and it works fine with
> firefox and the openssl command line. E.g.
>openssl s_client -connect myhostname:443 -CAfile cacert.pem
>But when i use the securesocketclient example from QT, i get the message
>'the signature of the certificate is invalid'. I don't know why and
> maybe somebody out here could tell me. Are there any special checks for
> the certificate in QT?

Can you post your modifications to the securesocketclient example? You 
mentioned your s_client command-line used the -CAfile switch, so you have 
to set the CA certificate list in the QSslSocket too.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090218/74dd9993/attachment.bin 


More information about the Qt-interest-old mailing list