Manual:API-SSL
Summary
Since RouterOS 6.1 it is possible to interface router using RouterOS API over a secure connection using api-ssl service.
Service is available in '/ip services' menu
Details
API-ssl service is capable to work in two modes - with and without a certificate. In the case no certificate is used in '/ip service' settings then anonymous Diffie-Hellman cipher have to be used to establish connection. If certificate is in use TLS session can be established
When secure connection is established communication with the router happens to use the same protocol that is used for API. For more details about the protocol see manual entry for API.