vici: Certification Authority support added.
CDP and OCSP URIs for a one or multiple certification authorities can be added via the VICI interface. swanctl allows to read definitions from a new authorities section.
This commit is contained in:
@@ -366,6 +366,27 @@ over vici.
|
||||
# completes after streaming list-cert events
|
||||
}
|
||||
|
||||
### list-authorities() ###
|
||||
|
||||
List currently loaded certification authority information by streaming
|
||||
_list-authority_ events.
|
||||
|
||||
{
|
||||
name = <list certification authority of a given name>
|
||||
} => {
|
||||
# completes after streaming list-authority events
|
||||
}
|
||||
|
||||
### get-authorities() ###
|
||||
|
||||
Return a list of currently loaded certification authority names.
|
||||
|
||||
{} => {
|
||||
authorities = [
|
||||
<list of certification authority names>
|
||||
]
|
||||
}
|
||||
|
||||
### load-conn() ###
|
||||
|
||||
Load a single connection definition into the daemon. An existing connection
|
||||
@@ -442,6 +463,32 @@ credential cache.
|
||||
errmsg = <error string on failure>
|
||||
}
|
||||
|
||||
### load-authority() ###
|
||||
|
||||
Load a single certification authority definition into the daemon. An existing
|
||||
authority with the same name gets replaced.
|
||||
|
||||
{
|
||||
<certification authority name> = {
|
||||
# certification authority parameters
|
||||
# refer to swanctl.conf(5) for details.
|
||||
} => {
|
||||
success = <yes or no>
|
||||
errmsg = <error string on failure>
|
||||
}
|
||||
}
|
||||
|
||||
### unload-authority() ###
|
||||
|
||||
Unload a previously loaded certification authority definition by name.
|
||||
|
||||
{
|
||||
name = <certification authority name>
|
||||
} => {
|
||||
success = <yes or no>
|
||||
errmsg = <error string on failure>
|
||||
}
|
||||
|
||||
### load-pool() ###
|
||||
|
||||
Load an in-memory virtual IP and configuration attribute pool. Existing
|
||||
@@ -673,6 +720,23 @@ _list-certs_ command.
|
||||
data = <ASN1 encoded certificate data>
|
||||
}
|
||||
|
||||
### list-authority ###
|
||||
|
||||
The _list-authority_ event is issued to stream loaded certification authority
|
||||
information during an active_list-authorities_ command.
|
||||
|
||||
{
|
||||
<certification authority name> = {
|
||||
cacert = <subject distinguished name of CA certificate>
|
||||
crl_uris = [
|
||||
<CRL URI (http, ldap or file)>
|
||||
]
|
||||
ocsp_uris = [
|
||||
<OCSP URI (http)>
|
||||
]
|
||||
cert_uri_base = <base URI for download of hash-and-URL certificates>
|
||||
}
|
||||
}
|
||||
|
||||
# libvici C client library #
|
||||
|
||||
|
||||
Reference in New Issue
Block a user