Answer the question
In order to leave comments, you need to log in
Telegram Bot SSL error?
I created a bot, tied it to a webhook, everything worked until I logged in from an iPhone, now the bot does not work, WebHookInfo shows
{"ok":true,"result":{"url":" https://***.com/ telegrambot ","has_custom_certificate":false,"pending_update_count":5,"last_error_date":1482142972,"last_error_message":"SSL error {336134278, error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed}","max_connections": 40}}
The certificate is fine, not self-signed.
Answer the question
In order to leave comments, you need to log in
Send another CA_BUNDLE, for example
const optionsSSLserver = {
key : fs.readFileSync(__dirname+'/ssl/PRIVATE.key'),
cert : fs.readFileSync(__dirname+'/ssl/CERTIFICATE.crt'),
ca : fs.readFileSync(__dirname+'/ssl/CA_BUNDLE.crt')
};
bot.telegram.setWebhook( URL+'/bot'+TELETOKEN,optionsSSLserver);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question