PDA

View Full Version : QSslCertificate returns NULL in Windows Server 2008 R2



plopes21
17th January 2013, 15:37
Hi people,

Why in windows server 2008 r2 when i do



const QByteArray certBa = certFile.readAll();
qDebug() << "Certificate read - " << certBa.data(); // Write good
QSslCertificate cert(certBa, QSsl::Pem);
if(cert->isNull()) // YES


is returned NULL ?

plopes21
17th January 2013, 19:35
But in Windows 7 works good!

ChrisW67
17th January 2013, 23:17
Qt versions different?
OpenSSL library versions different or library not present on failing machine?

plopes21
18th January 2013, 11:24
Thank you Chris! I resolved my problem.

In .pro file I added openssl


QT += openssl