W
W
WebDev2016-12-19 13:25:12
Telegram
WebDev, 2016-12-19 13:25:12

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

1 answer(s)
P
pontiac, 2017-04-11
@pontiac

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 question

Ask a Question

731 491 924 answers to any question