Qt & SSL, Handshake failed

前端 未结 3 1227
囚心锁ツ
囚心锁ツ 2020-12-18 21:58

I have a problem. I\'ve made a Qt application which is connecting to a https site. On my working machine, everything works fine. When I try to test my application on a clean

相关标签:
3条回答
  • 2020-12-18 22:14

    Have a look at this Qt bug

    [This is padding for SO :D]

    0 讨论(0)
  • 2020-12-18 22:33

    I was facing the same issue on Mac with Qt 5.5 and 5.6. When I upgraded to 5.7 it is solved. Hope it may help if you are still facing this issue.

    0 讨论(0)
  • 2020-12-18 22:38

    You could ignore certificate verify using QSslConfiguration::setPeerVerifyMode():

    QSslConfiguration conf = request.sslConfiguration();
    conf.setPeerVerifyMode(QSslSocket::VerifyNone);
    request.setSslConfiguration(conf);
    
    0 讨论(0)
提交回复
热议问题