Use SSL for connections
masterTo enable SSL, set use_ssl=True. By default, this will verify the certificate and hostname. If you are using self-signed certificates and need to bypass verification, set ssl_verify=False and ssl_verify_hostname=False.
# Standard SSL connection
connection = routeros_api.RouterOsApiPool('<IP>', username='admin', password='', use_ssl=True)
# SSL connection with verification disabled (e.g., for self-signed certs)
connection = routeros_api.RouterOsApiPool(
'<IP>',
username='admin',
password='',
use_ssl=True,
ssl_verify=False,
ssl_verify_hostname=False,
)