Page MenuHomeVyOS Platform

Configuring sstpc with a non-existent ca cert causes an unhandled exception
Open, Requires assessmentPublicBUG

Description

An unhandled exception appears when setting up sstpc interface with a non-existent CA certificate

vyos@vyos# commit
[ interfaces sstpc sstpc0 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 156, in run_script
    script.generate(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_sstpc.py", line 90, in generate
    pki_ca_cert = sstpc['pki']['ca'][ca_name]
                  ~~~~~~~~~~~~^^^^^^
KeyError: 'ca'

[[interfaces sstpc sstpc0]] failed
Commit failed
[edit]

How to reproduce:

set interfaces sstpc sstpc0 server 'remote.server'
set interfaces sstpc sstpc0 ssl ca-certificate 'test_ca'
commit

Details

Version
2025.12.06-0019-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)