From bcc436f7a92936ab457b21c91c5e08cecaa050a0 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 21 Nov 2019 05:05:54 +0100 Subject: nexus backup specification --- libeufin/api-nexus.rst | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'libeufin') diff --git a/libeufin/api-nexus.rst b/libeufin/api-nexus.rst index 80a297cc..65e321ba 100644 --- a/libeufin/api-nexus.rst +++ b/libeufin/api-nexus.rst @@ -57,6 +57,53 @@ Bank Account Management Low-level EBICS API ------------------- +.. http:put:: /ebics/subscribers/{id}/backup + + Ask the server to export the three keys, protected with passphrase. + + .. ts:def:: NexusEbicsBackupRequest + + interface NexusEbicsBackupRequest { + + passphrase: string; + + } + + + .. ts:def:: NexusEbicsBackupResponse + + interface NexusEbicsBackupRequest { + + // The three passphrase-protected private keys in the PKCS#8 format + + authBlob: binary; + encBlob: binary; + sigBlob: binary; + } + + +.. http:post:: /ebics/subscribers/{id}/restoreBackup + + Ask the server to restore the keys. + + .. ts:def:: NexusEbicsRestoreBackupRequest + + interface NexusEbicsRestoreBackupRequest { + + // passphrase to decrypt the keys + passphrase: string; + + // The three passphrase-protected private keys in the PKCS#8 format + authBlob: binary; + encBlob: binary; + sigBlob: binary; + } + + + + + .. ts:def:: NexusEbicsCreateSubscriber + .. http:post:: /ebics/subscribers Create a new subscriber. Create keys for the subscriber that -- cgit v1.2.3