电报机器人 SetWebhook问题,自签名证书不起作用

问题描述

  1. Used this official guide for creating a PEM certificate file
  1. 使用此URL设置Webhook:openssl req -newkey rsa:2048 -sha256 -nodes -keyout mycert.key -x509 -days 365 -out mycert.pem -subj“ / C = UA / ST = Kh / L = Keg / O =促销服务公司/CN=xxx.xx.xx.xx“

  2. 具有步骤2的结果:{“ ok”:true,“ result”:true,“ description”:“已设置Webhook”}

  3. 通过getWebhookInfo方法检查Webhook信息,返回以下内容:{“ ok”:true,“ result”:{“ url”:“ https://xxx.xx.xx.xxx:443/api/webHook” ,“ has_custom_certificate”:true,“ pending_update_count”:0:“ last_error_date”:1603653148,“ last_error_message”:“ SSL错误{error:1416F086:SSL例程:tls_process_server_certificate:证书验证失败}”,“ max_connections”:40}}

在StackOverflow上有一些类似的主题,对我不起作用,我尝试在证书名称前放置“ @”符号以将其设置为自签名,电报发现我的证书是自签名的,仍然存在问题

有什么想法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)