untested server api for encrypted private key storage