summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-15 06:14:03 +0100
committerGitHub <noreply@github.com>2022-02-15 06:14:03 +0100
commitaef699acf11e75313d455ca6389e4cc717a1d5db (patch)
treea6cdf5fd600d5cbd1f33969b79440e1fb99b3623 /src
parent122c7a53575f67759f157e02eca776f799658dc1 (diff)
parente00edb0072ceb07b92be826984154afeb6c567d3 (diff)
downloadvyos-1x-aef699acf11e75313d455ca6389e4cc717a1d5db.tar.gz
vyos-1x-aef699acf11e75313d455ca6389e4cc717a1d5db.zip
Merge pull request #1220 from chenxiaolong/T4244
pki: eapol: T4244: Fix KeyError when CA cert name differs from client cert name
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-ethernet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py
index e7250fb49..ab8d58f81 100755
--- a/src/conf_mode/interfaces-ethernet.py
+++ b/src/conf_mode/interfaces-ethernet.py
@@ -165,7 +165,7 @@ def generate(ethernet):
if 'ca_certificate' in ethernet['eapol']:
ca_cert_file_path = os.path.join(cfg_dir, f'{ifname}_ca.pem')
ca_cert_name = ethernet['eapol']['ca_certificate']
- pki_ca_cert = ethernet['pki']['ca'][cert_name]
+ pki_ca_cert = ethernet['pki']['ca'][ca_cert_name]
write_file(ca_cert_file_path,
wrap_certificate(pki_ca_cert['certificate']))