Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ошибка] Error while getting Access Token: SSL: CERTIFICATE_VERIFY_FAILED #143

Closed
dokznx opened this issue May 31, 2024 · 5 comments
Closed
Labels
good first issue Good for newcomers

Comments

@dokznx
Copy link

dokznx commented May 31, 2024

error while getting Access Token: Cannot connect to host api.hamsterkombat.io:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')] | Response text: ...

Помогите пожалуйста. Как решить проблему с сертификатом? Видел, были такие проблемы, но решения не увидел. Заранее спасибо!

@dokznx
Copy link
Author

dokznx commented Jun 1, 2024

Сам отвечу на вопрос. Может кому пригодится.
Мне помогла установка данного сертификата с сайта Amazon
https://www.amazontrust.com/repository/AmazonRootCA1.cer

А помог мне chatgpt этим ответом:

Add Amazon Root CA 1 to your local certificate store:

Download the Amazon Root CA 1 certificate from the Amazon Trust Services repository.
Install it in your operating system's certificate store or the certificate store used by your application.
Ensure Intermediate Certificates are Available:

Make sure the intermediate certificates (like Amazon RSA 2048 M02) are available either in the certificate store or provided by the server during the handshake.

@ZakezMine
Copy link

в файле core/tapper.py строку async with aiohttp.ClientSession(headers=headers, connector=proxy_conn) as http_client:
заменить на async with aiohttp.ClientSession(headers=headers, connector=aiohttp.TCPConnector(verify_ssl=False)) as http_client:

@vitaliiich
Copy link

в файле core/tapper.py строку async with aiohttp.ClientSession(headers=headers, connector=proxy_conn) as http_client: заменить на async with aiohttp.ClientSession(headers=headers, connector=aiohttp.TCPConnector(verify_ssl=False)) as http_client:

тогда каждая сессия будет запущена без прокси ( = акки в бан)

@MsaMadman
Copy link

в файле core/tapper.py строку async with aiohttp.ClientSession(headers=headers, connector=proxy_conn) as http_client: заменить на async with aiohttp.ClientSession(headers=headers, connector=aiohttp.TCPConnector(verify_ssl=False)) as http_client:

тогда каждая сессия будет запущена без прокси ( = акки в бан)

Так как правильно делать? Покупать платный прокси на каждый аккаунт?

@shamhi shamhi closed this as completed Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants
@dokznx @vitaliiich @shamhi @ZakezMine @MsaMadman and others