vici: Add commands to enumerate and remove private keys

They are identified by their SHA-1 key identifier.
This commit is contained in:
Tobias Brunner
2017-02-16 19:21:12 +01:00
parent dd5ee9d415
commit 2a56acf501
2 changed files with 75 additions and 2 deletions
+22
View File
@@ -466,6 +466,28 @@ Load a private key into the daemon.
errmsg = <error string on failure>
}
### unload-key() ###
Unload the private key with the given key identifier.
{
id = <hex-encoded SHA-1 key identifier of the private key to unload>
} => {
success = <yes or no>
errmsg = <error string on failure>
}
### get-keys() ###
Return a list of identifiers of private keys loaded exclusively over vici, not
including keys found in other backends.
{} => {
keys = [
<list of hex-encoded SHA-1 key identifiers>
]
}
### load-shared() ###
Load a shared IKE PSK, EAP or XAuth secret into the daemon.