<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/op-mode-definitions/pki.xml.in, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-06-04T23:33:41+00:00</updated>
<entry>
<title>pki: T8165: Add ability to show certificate full chain in pem format</title>
<updated>2026-06-04T23:33:41+00:00</updated>
<author>
<name>Indrajit Raychaudhuri</name>
<email>irc@indrajit.com</email>
</author>
<published>2026-05-27T19:27:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b27b74433a594a3c3b799b31db208da5bac8dd80'/>
<id>urn:sha1:b27b74433a594a3c3b799b31db208da5bac8dd80</id>
<content type='text'>
Add op-mode command having ability to show certificate
full chain in pem format as part of PKI configuration.

The certificates are ordered beginning with the end
entity (leaf) certificate, followed by any intermediate
certificates and finally the private key if requested.

This allows users to easily export a certificate along
with its CA hierarchy for use in external applications,
that require the full chain to be provided in a single
file.

One can now run the following commands:

```
show pki ca NAME pem full-chain
show pki certificate NAME pem full-chain
show pki certificate NAME private pem full-chain
```
</content>
</entry>
<entry>
<title>pki: T8877: Add ability to show private key in pem format</title>
<updated>2026-05-19T04:33:51+00:00</updated>
<author>
<name>Indrajit Raychaudhuri</name>
<email>irc@indrajit.com</email>
</author>
<published>2026-05-15T23:26:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=88a50d1700cac0b38595b206f804a59592bdb3d2'/>
<id>urn:sha1:88a50d1700cac0b38595b206f804a59592bdb3d2</id>
<content type='text'>
Add op-mode command having ability to show private
key in pem format as part of PKI configuration.

This is needed for users who want to render the
certificate and its private key.
</content>
</entry>
<entry>
<title>op-mode: T7560: add support for virtual tag nodes</title>
<updated>2025-06-25T16:35:01+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-06-25T16:35:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=edc64e7fb63757a3779df12945ecefca9c462952'/>
<id>urn:sha1:edc64e7fb63757a3779df12945ecefca9c462952</id>
<content type='text'>
for cases when commands need both fixed and variable arguments
</content>
</entry>
<entry>
<title>pki: T7574: add optional force argument to renew certbot-issued certificates</title>
<updated>2025-06-23T20:45:32+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-06-23T20:43:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=74941af39dc59c42d8ec6749169ee1c1663b78b7'/>
<id>urn:sha1:74941af39dc59c42d8ec6749169ee1c1663b78b7</id>
<content type='text'>
Certbot renewal command in op-mode "renew certbot" only works if any of the
certificates is up for renewal. There is no CLI option to forcefully renew a
certificate. This is about adding a force option to the CLI and with this
addition move the entire certbot renew handling to new-style op-mode commands.

vyos@vyos:~$ renew certbot force
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /config/auth/letsencrypt/renewal/vyos.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for vyos.io

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all renewals succeeded:
  /config/auth/letsencrypt/live/vyos/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hook 'post-hook' ran with output:
 Updating certificates in /etc/ssl/certs...
 0 added, 0 removed; done.
 Running hooks in /etc/ca-certificates/update.d...
 done.
</content>
</entry>
<entry>
<title>op-mode: T7459: eliminate direct use of sudo in op mode commands</title>
<updated>2025-05-16T11:39:44+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-05-16T11:39:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=6b562aae240927c14f629b9307583013bc3a9008'/>
<id>urn:sha1:6b562aae240927c14f629b9307583013bc3a9008</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pki: T4914: Rewrite the PKI op mode in the new style</title>
<updated>2024-10-18T12:42:59+00:00</updated>
<author>
<name>Nataliia Solomko</name>
<email>natalirs1985@gmail.com</email>
</author>
<published>2024-10-18T12:42:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=8943446c8c79c6daad2326ddc7a59950123b35d2'/>
<id>urn:sha1:8943446c8c79c6daad2326ddc7a59950123b35d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>op-mode: T6480: must call pki.py helper as root to work with ACME certificates</title>
<updated>2024-06-14T10:36:43+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-06-14T10:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=9456113a202f98a777d44c756f7f51c95b1df027'/>
<id>urn:sha1:9456113a202f98a777d44c756f7f51c95b1df027</id>
<content type='text'>
This is an addition to commit 65fba1cd2 ("op-mode: T6377: must call pki.py
helper as root to work with ACME certificates") which missed out the basic
"show pki" command, as the &lt;command&gt; XML node was deep down in the view.
</content>
</entry>
<entry>
<title>op-mode: T6377: must call pki.py helper as root to work with ACME certificates</title>
<updated>2024-05-25T19:26:42+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-05-25T19:26:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=65fba1cd27af67c543e120effc12882bd0191f03'/>
<id>urn:sha1:65fba1cd27af67c543e120effc12882bd0191f03</id>
<content type='text'>
This fixes the error:

vyos@vyos:~$ show pki certificate
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vyos/config.py", line 111, in config_dict_mangle_acme
    tmp = read_file(f'{vyos_certbot_dir}/live/{name}/cert.pem')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/file.py", line 44, in read_file
    raise e
  File "/usr/lib/python3/dist-packages/vyos/utils/file.py", line 38, in read_file
    with open(fname, 'r') as f:
         ^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/config/auth/letsencrypt/live/vyos/cert.pem'
</content>
</entry>
<entry>
<title>xml: T3642: improve PKI CLI help string</title>
<updated>2024-03-14T20:17:05+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-03-14T20:14:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d6226d60dce4a46c9fa63adbf85f2df86c7bd1b1'/>
<id>urn:sha1:d6226d60dce4a46c9fa63adbf85f2df86c7bd1b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pki: T6055: Cleanup unnecessary sudo, preserve env when sudo is needed</title>
<updated>2024-02-23T12:14:12+00:00</updated>
<author>
<name>sarthurdev</name>
<email>965089+sarthurdev@users.noreply.github.com</email>
</author>
<published>2024-02-23T12:14:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1f22ac1bb0a32d3e7ef06713f42e7f6f1c3f3775'/>
<id>urn:sha1:1f22ac1bb0a32d3e7ef06713f42e7f6f1c3f3775</id>
<content type='text'>
</content>
</entry>
</feed>
