summaryrefslogtreecommitdiff
path: root/src/conf_mode/pki.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-03-20 18:41:24 +0200
committerViacheslav Hletenko <v.gletenko@vyos.io>2026-03-24 17:02:56 +0000
commitbb2aee1e58c1cd30087b935798060e6bf3c698c8 (patch)
tree99f692623ad596519ff26da443f62415cc3bcf59 /src/conf_mode/pki.py
parenta9a75eb7dce077bceee1ae13dc943b05d8759925 (diff)
downloadvyos-1x-bb2aee1e58c1cd30087b935798060e6bf3c698c8.tar.gz
vyos-1x-bb2aee1e58c1cd30087b935798060e6bf3c698c8.zip
T8410: Fix typos and mistakes for operational and configuration commands
Fix typos and mistakes in the commands and comments No functional changes
Diffstat (limited to 'src/conf_mode/pki.py')
-rwxr-xr-xsrc/conf_mode/pki.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/conf_mode/pki.py b/src/conf_mode/pki.py
index 6d2817384..356a8dd89 100755
--- a/src/conf_mode/pki.py
+++ b/src/conf_mode/pki.py
@@ -153,7 +153,7 @@ def certbot_request(name: str, config: dict, dry_run: bool=True) -> None:
elif listen_address:
tmp += f' --http-01-address {listen_address}'
- # verify() does not need to actually request a cert but only test for plausability
+ # verify() does not need to actually request a cert but only test for plausibility
if dry_run:
tmp += ' --dry-run'
@@ -217,7 +217,7 @@ def get_config(config=None):
# We only merge on the defaults if there is a configuration at all
if conf.exists(base):
# We have gathered the dict representation of the CLI, but there are default
- # options which we need to update into the dictionary retrived.
+ # options which we need to update into the dictionary retrieved.
default_values = conf.get_config_defaults(**pki.kwargs, recursive=True)
# remove ACME default configuration if unused by CLI
if 'certificate' in pki:
@@ -296,7 +296,7 @@ def get_config(config=None):
# Check PKI certificates if they are auto-generated by ACME. If they are,
# traverse the current configuration and determine the service where the
# certificate is used by.
- # Required to check if we might need to run certbot behing a reverse proxy.
+ # Required to check if we might need to run certbot behind a reverse proxy.
if 'certificate' in pki:
for name, cert_config in pki['certificate'].items():
if 'acme' not in cert_config:
@@ -420,7 +420,7 @@ def verify(pki):
# A call to check_port_availability() will always fail during system
# boot when listen_address is set and the address is not yet assigned
# to an interface. This happens b/c PKI subsystem is called prior
- # to any inteface - e.g. ethernet - and thus the OS will always
+ # to any interface - e.g. ethernet - and thus the OS will always
# be unable to bind() a socket() to a non existing IP address.
if boot_configuration_complete() and not check_port_availability(listen_address, 80):
raise ConfigError('Port 80 is already in use and not available '\
@@ -498,7 +498,7 @@ def verify(pki):
continue
for found_name, found_path in dict_search_recursive(search_dict, key):
- # Check if the name matches either by string compare, or beeing
+ # Check if the name matches either by string compare, or being
# part of a list
if ((isinstance(found_name, str) and found_name == item_name) or
(isinstance(found_name, list) and item_name in found_name)):
@@ -563,7 +563,7 @@ def generate(pki):
# the PEM files on disk. We need to add the certificate to
# certbot_list_on_disk to automatically import the CA chain
certbot_list_on_disk.append(name)
- # We alredy had an ACME managed certificate on the system, but
+ # We already had an ACME managed certificate on the system, but
# something changed in the configuration
elif changed_certificates != None and name in changed_certificates:
# Delete old ACME certificate first