Export private key

POST http://127.0.0.1/api/user/pkey/export

.config
{
	"webuser": {
		"enabled": true, 
		"rw_pkey": true,
		}
}

rw_pkey - enable access to import/export private keys (for export, the value must be true)

{ 
     "auth": "5b3c7fafaa75a3e95a70ca80de6b6888"
}
success response (base64): {"success": true, "private_key": "AAIAAEgAAAAQAAA AAAABAAAABQAAABMO"}"}
fail response: {"success":"false","error":"access to private keys is disabled"}

Last updated