From 8d3adb77527d15865bbe0f223c5b3f99b74ad0a9 Mon Sep 17 00:00:00 2001 From: Philip Meulengracht Date: Fri, 17 Apr 2026 11:22:25 +0200 Subject: [PATCH 1/2] docs/reference/administration/system-options: add options for pki-certs --- .../administration/system-options.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/reference/administration/system-options.md b/docs/reference/administration/system-options.md index 3ab169d..3657f50 100644 --- a/docs/reference/administration/system-options.md +++ b/docs/reference/administration/system-options.md @@ -62,6 +62,39 @@ snap set system proxy.https="http://:" > ⓘ Available only on Ubuntu Core. +## system pki.certs.custom + +A custom certificate named `` can be managed with the following system options: + +- **pki.certs.custom.\.content**: sets the certificate payload. This option must be set first to register the certificate in the database, and the `` used in the option becomes the initially registered certificate name +- **pki.certs.custom.\.name**: changes the registered certificate name after the certificate content has been set +- **pki.certs.custom.\.state**: sets the certificate state to `blocked` or `accepted`. If not explicitly set, the default state is `accepted`. Setting the state to `unset` removes the certificate + +The following example sets the certificate content, changes the certificate name, and blocks the certificate: + +``` +snap set system pki.certs.custom..content= +snap set system pki.certs.custom..name=new-name +snap set system pki.certs.custom..state=blocked +``` + +To remove the certificate, set its state to `unset` or unset it: + +``` +snap set system pki.certs.custom..state=unset +snap unset system pki.certs.custom. +``` + +Use `snap get` to retrieve the list of custom certificates: + +``` +snap get system pki.certs.custom +``` + +> ⓘ Available only on Ubuntu Core. + +> ⓘ Available since snapd _2.75_. + ## system refresh There are four system-wide options that are used to manage how updates are handed: From 7a0b378d643164ca0f5a02febbb7405e45a77876 Mon Sep 17 00:00:00 2001 From: Philip Meulengracht Date: Fri, 17 Apr 2026 13:52:36 +0200 Subject: [PATCH 2/2] docs/reference/administration/system-options: improvement from @degville --- docs/reference/administration/system-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/administration/system-options.md b/docs/reference/administration/system-options.md index 3657f50..7930053 100644 --- a/docs/reference/administration/system-options.md +++ b/docs/reference/administration/system-options.md @@ -64,7 +64,7 @@ snap set system proxy.https="http://:" ## system pki.certs.custom -A custom certificate named `` can be managed with the following system options: +Enables custom certificate management with the following options (replace `` with the certificate name): - **pki.certs.custom.\.content**: sets the certificate payload. This option must be set first to register the certificate in the database, and the `` used in the option becomes the initially registered certificate name - **pki.certs.custom.\.name**: changes the registered certificate name after the certificate content has been set