![]() ![]() RouterOS Versions v6.43 onwards now use a different login method. RouterOsApiPool ( '', username = 'admin', password = '', use_ssl = True, ssl_verify = False, ssl_verify_hostname = False, ) Login for RouterOS v6.43 onwards ![]() if using a self-signed certificate, you can (but probably shouldn't) use: connection = routeros_api. Ssl_verify and ssl_verify_hostname are provided.Į.g. Ssl_context parameter, but for typical use-cases with self-signed certificates, the shorthand options of The most flexible way to modify SSL parameters is to provide an SSL Context object using the This will automatically verify SSL certificate and hostname. RouterOsApiPool ( '', username = 'admin', password = '', use_ssl = True ) If we want to use SSL, we can simply specify use_ssl as True: connection = routeros_api. ssl_context - Object - Pass in a custom SSL context object.ssl_verify_hostname - Boolean - Verify the SSL certificate hostname matches? - Default True.ssl_verify - Boolean - Verify the SSL certificate? - Default True.use_ssl - Boolean - Use SSL or not? - Default False. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |