socialwifi / RouterOS-api

Python API to RouterBoard devices produced by MikroTik.
MIT License
251 stars 100 forks source link

How sign certificate via API? #77

Open soksssnn opened 2 years ago

soksssnn commented 2 years ago

Hello! Please help me. I can't find how I can sign certificate via API. Cerificate was create. I tried do it in that way: api = connection.get_api() api.get_resource('/certificate').sign(name=user_ovpn,ca='ovpn_ca') But got AttributeError: 'RouterOsResource' object has no attribute 'sign'.

Sorry for the stupid question. I am a newcomer in the python. Thank you.

jgoclawski commented 2 years ago

Did you try the examples from the docs? https://github.com/socialwifi/RouterOS-api#execute-commands