Answer the question
In order to leave comments, you need to log in
Error in SSL certificate for Telegram when executing getWebhookInfo?
Good afternoon! Please tell me, I created a subdomain with ssl -> tg.domen.ru on the hosting.
The domain itself is domen.ru without ssl.
Generated a certificate on the server via ssh:
openssl req -newkey rsa:2048 -sha256 -nodes -keyout /var/www/tg.domen.ru/teleg.key -x509 -days 365 -out /var/www/tg.domen. ru/teleg.pem -subj "/C=RU/ST=Moscow/L=Moscow/O=Home/CN=tg.domen.ru"
I execute setWebHook with this certificate, in response I get:
{"ok":true, "result":true,"description":"Webhook was set"}
I execute getWebHookInfo and get:
{"ok":true,"result":{"url":" https://tg.domain.ru/index. php","has_custom_certificate":true,"pending_update_count":47,"last_error_date":1486802958,"last_error_message":"SSL error {336134278, error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed}","max_connections":40 }}
Why can there be an error?
Answer the question
In order to leave comments, you need to log in
check ssl settings and certificate https://www.ssllabs.com/ssltest/
configure ssl if necessary https://mozilla.github.io/server-side-tls/ssl-conf...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question