vadymfedorets / notpixel

NotPixel is a Telegram automation tool designed to help you manage and interact with @notpixel. This bot can create sessions, gather statistics, and automate tasks for your accounts. https://t.me/crypto_alcash one of forks of my code: https://github.com/YarmolenkoD/notpixel
https://t.me/hidden_coding
Apache License 2.0
154 stars 38 forks source link

Ssl certificate verify failed? #5

Closed hhjoo closed 1 month ago

hhjoo commented 1 month ago

Unknown error when logging: Cannot connect to host notpx.app:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')]

Any fix?

vadymfedorets commented 1 month ago

Most cases - windows server os, but you can try: Go to the bot folder, then to the bot/core folder, open the tapper.py file with any text editor, find there the line with this text: CloudflareScraper(headers=headers, connector=proxy_conn), replace that text with aiohttp.ClientSession(headers=headers, connector=aiohttp.TCPConnector(ssl=False))

hhjoo commented 1 month ago

That will make me a man in the middle of attack :(

vadymfedorets commented 1 month ago

OS issue as I told, you can try do smth with it. But most of cases seen on windows server 2022.

Missing or outdated SSL certificates: Your system might not have the necessary root certificates installed or updated. Corporate firewall or proxy: If you're on a corporate network, there might be a firewall or proxy that's intercepting SSL certificates and using its own.

hhjoo commented 1 month ago

Ok bro I'll try to fix it, Thanks.

vadymfedorets commented 1 month ago

and also you can try to run it in a docker image of debian for example it gotta fix for sure;)