Results 1 to 13 of 13

Thread: run-time vs linked OpenSSL support

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2012
    Location
    India
    Posts
    5
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question Re: run-time vs linked OpenSSL support

    Hi All,

    I am new in Qt programming, i need your help to resolve an issue.
    I want to display certificate information of secured website in "Qt demo brower", for this i write code to display but i am unable to get "defaultCaCertificate", "caCertificate" and "peerCertificateChain".
    Do we need any type of initilization before using these APIs ?

    Every time when i call below code it retrive 0 items in dCaCertificates.
    QList<QSslCertificate> dCaCertificates = QSslSocket::defaultCaCertificates();

    But i am able to get system certificates using below code:
    QList<QSslCertificate> sysCertificates = QSslSocket::systemCaCertificates();

    Please help me, its urgent.

    Regards,
    Pranay

  2. #2
    Join Date
    Mar 2012
    Location
    India
    Posts
    5
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: run-time vs linked OpenSSL support

    Hi Pranay,

    If you want to get and display certificate details in Qt demo browser, here is the code:
    First of all to peerCertificateChain details, one can use the SLOT sslError, the argument within this SLOT named QNetworkReply have all the details of peerCertificateChain and peerCertificate.

    void NetworkAccessManager::sslError(QNetworkReply *reply, const QList<QSslError> &error)
    {
    QList<QSslCertificate> peerCertificateChain = reply->sslConfiguration().peerCertificateChain();
    }

    Thanks & Regards,
    Software

Similar Threads

  1. Qt 4.4.3 commercial on Kubuntu 8.10
    By Micawber in forum Installation and Deployment
    Replies: 5
    Last Post: 17th February 2010, 01:02
  2. Qt for Windows CE with OpenSSL support
    By Jonas in forum Installation and Deployment
    Replies: 2
    Last Post: 4th February 2010, 07:36
  3. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  4. Qt-4.4.0 installation error in linux
    By babu198649 in forum Installation and Deployment
    Replies: 4
    Last Post: 27th May 2008, 14:35
  5. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.