HomeVyOS Platform

op-mode: T6377: must call pki.py helper as root to work with ACME certificates

Description

op-mode: T6377: must call pki.py helper as root to work with ACME certificates

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'

Details

Provenance
c-poAuthored on May 25 2024, 7:26 PM
Parents
rVYOSONEX609563d6acfe: load-balancing haproxy: T6391: fix typo in timeout help (#3513)
Branches
Loading...
Tags
Loading...