J-Rios / TLG_JoinCaptchaBot

Telegram Bot to verify if users joining a group are human. The Bot sends an image captcha for each new user and kicks any of them who can't solve the captcha in a specified time.
GNU General Public License v3.0
532 stars 218 forks source link

[Question] Create certs for Webhook (II)? #170

Closed zMcKracken closed 2 years ago

zMcKracken commented 2 years ago

Hi, I'm trying to use webhook. I create a self signed cert with the command specified in the documentation, and accordly I changed the settings. I put my server IP, and use port 88, which as far as I understand is still ok for webhook, at least reading the telegam documentation. I'm using a linux debian machine. When I run it, and then send a command I got this:

2022-08-03 15:31:14: Bot started. 2022-08-03 15:31:14: Resources initialized. 2022-08-03 15:31:14: Last session data restored 2022-08-03 15:31:14: Setup Bot for Webhook. 2022-08-03 15:31:14,605 - apscheduler.scheduler - INFO - Scheduler started 2022-08-03 15:31:14: Bot setup completed. Bot is now running. 2022-08-03 15:31:18,497 - tornado.general - WARNING - SSL Error on 9 ('91.108.6.67', 32980): [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1129)

And it keeps saying the last line, any idea? Of course the command is not understood.

thanks a lot, and awsome lib by the way :)

J-Rios commented 2 years ago

Hi,

There was an issue related to this specific topic:

https://github.com/J-Rios/TLG_JoinCaptchaBot/issues/113

Please take a look and try to generate the certs with the provided script (you can edit it and change the passphrase or other data to your needs):

https://gist.github.com/J-Rios/8e015ce5a2a0d37d97e2fd652bafe790

Best Regards.

zMcKracken commented 2 years ago

my bad I did not see it. Thanks! it works like a charm!