HamsterKombatBot icon indicating copy to clipboard operation
HamsterKombatBot copied to clipboard

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

Open dokznx opened this issue 1 year ago • 4 comments

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 avatar May 31 '24 19:05 dokznx

Сам отвечу на вопрос. Может кому пригодится. Мне помогла установка данного сертификата с сайта 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.

dokznx avatar Jun 01 '24 08:06 dokznx

в файле 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:

ZakezMine avatar Jun 03 '24 19:06 ZakezMine

в файле 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 avatar Jun 04 '24 14:06 vitaliiich

в файле 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 avatar Aug 05 '24 22:08 MsaMadman