Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SSL Handshake problems, which servers that are accepted in the browser

SSL Handshake problems, which servers that are accepted in the browser

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.0k Views 2 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.
  • R Offline
    R Offline
    RudolfVonKrugstein
    wrote on last edited by
    #1

    Hey,

    I am trying to make a https connection to a server, but I always get ssl handshake errors (unless I set the verify mode to none).
    Using my browser, I do not get any problems (and a green https symbol) in my browser.
    What could be the reason for that?

    I am trying to solve this by adding a certificate using setCaCertificates. I tried the root certificate which I can export from my browser. But that did not help.

    Which certificate do I have to add to with CaCertificates, or is this not the way to go?

    Thanks!
    Nathan

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      IIRC Self-Signed certificates are not accepted by default. BTW you can print the error to understand what happens.

      Are you using QSslSocket or QNetworkAccessManager??

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RudolfVonKrugstein
        wrote on last edited by
        #3

        I am using QNetworkAccessManager. I am not using a self-signed certificate.

        The printed error is: "SSL handshake failed".

        H 1 Reply Last reply
        0
        • R RudolfVonKrugstein

          I am using QNetworkAccessManager. I am not using a self-signed certificate.

          The printed error is: "SSL handshake failed".

          H Offline
          H Offline
          Hatchi
          wrote on last edited by
          #4

          @RudolfVonKrugstein I am having exactly the same problem with Qt 5.4.1 and openSSL 1.01. I am working on Windows 7 and the software is compiled for 32 bit. I can not connect using SSL to a password secured PHP script. Without SSL it works properly. The SSL certificate is signed by a trusted third party, i.e. GlobalSign. I always get the message SSL handshake failed. I am using QNetworkAccessManager and the default SSLConfiguration.
          Can anybody help give some suggestions?

          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