[Qt-interest] https with self-signing cert
Thiago Macieira
thiago at kde.org
Fri Feb 5 09:30:07 CET 2010
Em Sexta-feira 5. Fevereiro 2010, às 08.10.08, Konrad Rosenbaum escreveu:
> On Friday 05 February 2010, Bryce Allen wrote:
> > I'm trying to POST to a page with https, and the server uses a
> > self-signing cert. I've tried many approaches and I can't get the error
> > ignored. Has anyone had success with this? I am using Qt 4.6.0 on linux
> > amd64, from the debian experimental repository.
> >
> > The first approach I tried was ignoring the self-signing error with the
> > certificate specified, as suggested in the docs.
> > http://doc.qt.nokia.com/4.6/qnetworkreply.html#ignoreSslErrors-2
>
> A self-signed cert triggers several errors. You probably didn't ignore all
> of them.
I recommend checking the list of errors that are produced, like Konrad says.
You're probably getting two more errors (unknown CA and CA not trusted for
this purpose).
And note that QSslErrors carry a QSslCertificate as well. You may need to
construct the error code differently.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100205/cce41659/attachment.bin
More information about the Qt-interest-old
mailing list