Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. How to specify the certificate file to the Qt Webview.
Forum Updated to NodeBB v4.3 + New Features

How to specify the certificate file to the Qt Webview.

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mitsuhata
    wrote on last edited by
    #1

    I am creating a for embedded browser software using the Webkit.

    Qt Version is 4.8.2.

    I want https communication in the browser, but does not know how to specify (read file) the certificate file.
    It is also required client certificate, but does not know how to set the certificate file.

    Please tell someone how.

    Thanks a lot in advance.

    1 Reply Last reply
    0
    • McLionM Offline
      McLionM Offline
      McLion
      wrote on last edited by McLion
      #2

      You can load a certificate bundle (i.e. cacert.pem from http://curl.haxx.se/ca/cacert.pem) with the following command:

      QSslSocket::addDefaultCaCertificates("/path_to_file/cacert.pem")

      You also need to make sure the date and time is set correctly.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mitsuhata
        wrote on last edited by
        #3

        Thank you for your reply.

        By the way, How Will may be read normally (Server certificate) certificate file?

        Please tell someone how.

        Thanks a lot in advance.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved