Telergam webhook错误:14095044:SSL例程:ssl3_read_n:内部错误

问题描述

无法将我的自签名证书发送给Telegram。 我尝试另一种方法,但是我了解它不适用于自签名证书。我看到电报https://core.telegram.org/bots/self-signed发出的指示:

使用证书中的certificate参数上传证书 setWebhook方法

但是如何? 我的主机只是白色IP,我没有域名。

我的下一步。

生成ssl对:

openssl req -new -x509 -days 3650 -key webhook_pkey.pem -out webhook_cert.pem

尝试注册Webhook:

https://api.telegram.org/bottOKEN/setWebhook?url=HOST:PORT

{"ok":true,"result":true,"description":"Webhook was set"}

检查状态:

https://api.telegram.org/bottOKEN/getWebhookInfo

{"ok":true,"result":{"url":"HOST","has_custom_certificate":false,"pending_update_count":1,"last_error_date":1603980399,"last_error_message":"SSL error {error:14095044:SSL routines:ssl3_read_n:internal error}","max_connections":40}}

非常感谢您的回答。

解决方法

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

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

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