Получение приватного ключа

(.config = "webaccess": {"active": true, "access_private_key": true})

POST http://127.0.0.1/api/access/exportkey

{ 
     "token": "f71d593ca1eda6f96972a45283e2c983"
} 

успешный ответ:

(base64): {"success": true, "private_key": "AAIAAEgAA***************13d48+20ceOuyd3qcZhpHnIlevnCd1Sc4oZir7Fnn0EDAAAAAEAAAABAAAAEQAAAOGR"}

ответ об ошибке:

{"success":"false","error":"access to private keys is disabled"}

Last updated