【发布时间】:2018-08-24 19:30:02
【问题描述】:
我使用让我们加密免费 SSL(我的主机提供商默认支持它),
我在 sslshopper.com 上查看了我的网站(唯一的警告是:The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link it to a trusted root certificate. Learn more about this error. The fastest way to fix this problem is to contact your SSL provider.)和https://www.geocerts.com/ssl_checker
结果是我的网站通过了所有测试,Certificate Chain Complete 除外。所以我不认为问题出在证书上,据我所知,电报接受自签名证书。
我尝试在https://core.telegram.org/bots/samples/hellobot 使用电报示例机器人, 设置 webhook URL 后,我在 https://api.telegram.org/bot[my-token]/getWebhookinfo 上检查了我的机器人
结果是:
{
"ok": true,
"result": {
"url": "https://itest.gigfa.com/tlg1/tlg1.php",
"has_custom_certificate": false,
"pending_update_count": 17,
"last_error_date": 1521140994,
"last_error_message": "SSL error {337047686, error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed}",
"max_connections": 40
}
}
机器人根本无法工作。
【问题讨论】: