SSL Certificate Error When Connecting to Maestro in Python

SSL Certificate Error When Connecting to Maestro in Python

Why did the bot fail to connect to Maestro?

The bot failed because, in Python, the call to Maestro did not ignore the self-signed SSL certificate from the proxy or server.
This issue is common in corporate environments that use internal certificates or traffic inspection proxies.


How can I fix the SSL certificate issue?

You need to adjust the SSL verification before running the bot again.
You can either disable SSL verification or install the Certificate Authority (CA) certificate.

Example of disabling verification in the code:

  1. from botcity.maestro import BotMaestroSDK
  2. maestro = BotMaestroSDK.from_sys_args() maestro.VERIFY_SSL_CERT = False # Ignore SSL certificate validation

Important note about VERIFY_SSL_CERT

For the flag maestro.VERIFY_SSL_CERT = False to work properly, the botcity-maestro-sdk dependency must be version 0.7.0 or higher (PyPI).


Quick fix

In your bot code, define the flag to ignore SSL certificates:

  1. maestro.VERIFY_SSL_CERT = False

This allows the bot to reconnect successfully, even in environments using self-signed certificates.