Results 1 to 4 of 4

Thread: QSslCertificate returns NULL in Windows Server 2008 R2

  1. #1
    Join Date
    Apr 2012
    Location
    Porto
    Posts
    38
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default QSslCertificate returns NULL in Windows Server 2008 R2

    Hi people,

    Why in windows server 2008 r2 when i do

    Qt Code:
    1. const QByteArray certBa = certFile.readAll();
    2. qDebug() << "Certificate read - " << certBa.data(); // Write good
    3. QSslCertificate cert(certBa, QSsl::Pem);
    4. if(cert->isNull()) // YES
    To copy to clipboard, switch view to plain text mode 

    is returned NULL ?
    Last edited by plopes21; 17th January 2013 at 16:45.

  2. #2
    Join Date
    Apr 2012
    Location
    Porto
    Posts
    38
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QSslCertificate returns NULL in Windows Server 2008 R2

    But in Windows 7 works good!

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSslCertificate returns NULL in Windows Server 2008 R2

    Qt versions different?
    OpenSSL library versions different or library not present on failing machine?

  4. #4
    Join Date
    Apr 2012
    Location
    Porto
    Posts
    38
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QSslCertificate returns NULL in Windows Server 2008 R2

    Thank you Chris! I resolved my problem.

    In .pro file I added openssl

    Qt Code:
    1. QT += openssl
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 0
    Last Post: 14th January 2013, 20:19
  2. QImage() returns Null Image
    By ustulation in forum Qt Programming
    Replies: 7
    Last Post: 24th July 2012, 14:52
  3. Fancy Browser, Windows Server 2008 and empty webpage
    By drewpt in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2011, 01:35
  4. Replies: 33
    Last Post: 2nd December 2010, 17:47
  5. QDBusMessage returns NULL string
    By nrabara in forum Qt Programming
    Replies: 0
    Last Post: 27th November 2009, 07:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.