PDA

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



plopes21
17th January 2013, 16: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, 20:35
But in Windows 7 works good!

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

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

In .pro file I added openssl


QT += openssl