/tool/fetch with certificates
Posted: Sat Sep 05, 2020 12:02 pm
It's more like a feature request, sorry if it's an inappropriate forum for that.
I'm working with a lot of MikroTik's routers which push some data about their state and environment to the our cloud application.
It's important that it's not polled from the cloud, but router pushing the data under some condition met.
Problem is that I have to implement and maintain a complex custom authentication for the routers, because /tool/fetch doesn't support a certificate-based authentication.
Is there any chance for support a curl options like listed below?
Ideally I should be able to import certificates to the /certificate storage so they could be stored safely, and not in the files.
Thank you.
I'm working with a lot of MikroTik's routers which push some data about their state and environment to the our cloud application.
It's important that it's not polled from the cloud, but router pushing the data under some condition met.
Problem is that I have to implement and maintain a complex custom authentication for the routers, because /tool/fetch doesn't support a certificate-based authentication.
Is there any chance for support a curl options like listed below?
Code: Select all
curl --tlsv1.2 \
--cacert ca.crt \
--cert public.crt \
--key private.key \
--request POST \
--data "{ \"message\": \"test\" }" \
"https://example.com"
Thank you.