Show pki certificate got error traceback

I installed a self sigend certificate, that are my steps

set pki certificate apitest certificate ‘certificate’
set pki certificate apitest private key ‘privykey’

then i will show my certificate

show pki certificate apitest
Version VyOS 1.4-rolling-202303150317

Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/", line 1039, in <module>
    show_certificate(None if args.certificate == 'all' else args.certificate)
  File "/usr/libexec/vyos/op_mode/", line 885, in show_certificate
    ca_name = get_certificate_ca(cert, ca_certs)
  File "/usr/libexec/vyos/op_mode/", line 90, in get_certificate_ca
    for ca_name, ca_dict in ca_certs.items():
AttributeError: 'bool' object has no attribute 'items'

Thanks for the report. Fixed here: pki: T3642: Fix show command if no CA certs are present by sarthurdev · Pull Request #1963 · vyos/vyos-1x · GitHub

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.