Telegram Webhook中的SSL证书验证失败

时间:2017-08-20 10:32:19

标签: ubuntu ssl https webhooks telegram-bot

我正在尝试为我的Telegram Bot设置一个Webhook,我正面临Telegram SSL认证的问题:

{"ok":true,"result":"url":"https://example.com:443/index.php","has_custom_certificate":true,"pending_update_count":2,"last_error_date":1503222412,"last_error_message":"SSL error {337047686, error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed}","max_connections":40}}

我从电报支持的COMODO购买了此SSL证书,我厌倦了所有可能的端口,并使用此命令上传了.pem

curl -F "url=https://example.com:443/harfbeme/index.php" -F "certificate=@/etc/apache2/ssl/apache.pem" https://api.telegram.org/botTokenID/setWebhook 我也试过了here描述的Telegram方法,但我得到了同样的错误。 我也检查了this page,我的服务器满足了所有要求。

我知道为什么会出现certificate verify failed错误?

1 个答案:

答案 0 :(得分:0)

购买SSL后,您确定在您的域名中设置它吗? SSL域,Webhook域必须相同,并且必须在“设置”中的“域”上设置SSL证书。

相关问题