first, yes this has been sent to Mikrotik (SUP-58177). My ticket has been open for a week with no replies from Mikrotik support.
I have attempted using the REST API using the fetch tool from my home router, which runs ROS 6.47.10, out to a CHR which is currently running v7.1RC2. I have also tried the same with RC1 and beta5. The REST API doesn’t appear to be functioning in any of them
I run the following on my home router
/tool fetch http-method=get url=https://3.22.208.229/rest/system/resource check-certificate=no user=admin password=""
and get the following as a result
status: failed
failure: ssl connection error: handshake failed: error 14077410 (6)
I also attempt from ubuntu 20.04.3 running in WSL with the exact example command that is given in the docs at https://help.mikrotik.com/docs/display/ROS/REST+API
curl -k -u admin: https://3.22.208.229/rest/system/resource
and get the following response
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
I’m attaching the export of my CHR, you can also try this with my CHR, default credentials are set to read only permissions. I don’t have anything on there I care about. I literally just made this CHR to try using the REST API and for my friend to try wireguard.
if I’m stupid and doing this wrong, that’s ok, I’ll take correction for being stupid/ignorant. I’ve never used a REST API before…but I really wish Mikrotik would at least give me a three word “you’re doing it wrong” response if that’s the case.
edit: layout and spelling
chr.rsc (1.53 KB)