[Qt-interest] QT and SSL certificates

Andreas Roth aroth at arsoft-online.com
Wed Feb 18 13:48:11 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.
>

I haven't changed the securesocketclient example. I just installed the CA
certificate in /etc/ssl/certs.
If the CA certificate is not recognized i get the appropriate error
message and i know why. But the 'the signature of the certificate is
invalid' error is strange, since i do not know the reason for it.

Regards,
Andreas





More information about the Qt-interest-old mailing list