GithubHelp home page GithubHelp logo

SSL Error about jqhttpserver HOT 4 CLOSED

188080501 avatar 188080501 commented on July 23, 2024
SSL Error

from jqhttpserver.

Comments (4)

188080501 avatar 188080501 commented on July 23, 2024
  1. 请用POSTMAN测试HTTP接口调用,若还发生错误请将完整的URL、参数、报错内容截图
  2. 服务端是否使用的是HttpsServerDemo?

from jqhttpserver.

MartinTobing avatar MartinTobing commented on July 23, 2024

Yes, i'm using HttpsServerDemo. Actually i tried to set webhook from telegram api to your HttpsServerDemo. I added a domain name and point to HttpsServerDemo. Nothing happened. When i check from https://api.telegram.org/bot[myToken]/getWebHookInfo , it said:
{"ok":true,"result":{"url":"https://api.myapp.com","has_custom_certificate":false,"pending_update_count":0,"last_error_date":1593487302,"last_error_message":"SSL error {error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed}","max_connections":40}}

Do you have any solution about it? And i have one more question, how can i add the "SSLCertificateChainFile" to your HttpsServerDemo ?

Thank you for your concern.

from jqhttpserver.

188080501 avatar 188080501 commented on July 23, 2024
  1. 请使用POSTMAN测试接口
  2. 如果无法使用POSTMAN,请在ssl检测网站中测试你的接口,比如说:https://myssl.com/ssl.html 它会告诉你HTTPS接口准确的状态,例如CA证书链是否完整,证书是否有效等

另外如果你没有添加CA证书链,那么很可能会出现问题,添加CA证书链的代码如下。注意区分Pem和Der格式

 qDebug() << "listen:" << sslServerManage.listen(
                    QHostAddress::Any,
                    24684,
                    "xxx/__xxx_com.crt", // Add your domain certificate
                    "xxx/__xxx_com.key",
                    {
                        { "xxx/__xxx_com.ca-bundle", QSsl::Pem }, // Add your CA Chain here
                        { "xxx/__xxx_com.ca-bundle", QSsl::Pem }, // Add your CA Chain here
                    }
                );

from jqhttpserver.

MartinTobing avatar MartinTobing commented on July 23, 2024

Thank you. Solved by adding the script you mentioned above.

from jqhttpserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.