mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 13:22:58 +00:00
Improve language.
This commit is contained in:
@@ -356,7 +356,7 @@ def main():
|
||||
completed = []
|
||||
occured_certificates = set([cert.cert for cert in chain])
|
||||
if current.cert in roots.certificate_by_cert:
|
||||
# Do not try to complete the chain when it's already ending with a root certificate
|
||||
# Do not try to complete the chain when it is already ending with a root certificate
|
||||
current = None
|
||||
while current:
|
||||
root = roots.find_parent(current)
|
||||
|
||||
@@ -419,7 +419,7 @@ EXAMPLES = r'''
|
||||
entrust_api_client_cert_key_path: /etc/ssl/entrust/ecs-client.key
|
||||
|
||||
- name: Request a new certificate with an alternative client. Note that the
|
||||
issued certificate will have it's Subject Distinguished Name use the
|
||||
issued certificate will have its Subject Distinguished Name use the
|
||||
organization details associated with that client, rather than what is
|
||||
in the CSR.
|
||||
community.crypto.ecs_certificate:
|
||||
|
||||
@@ -502,7 +502,7 @@ def main():
|
||||
if get_certificate_chain:
|
||||
if sys.version_info < (3, 13):
|
||||
# The official way to access this has been added in https://github.com/python/cpython/pull/109113/files.
|
||||
# We're basically doing the same for older Python versions. The internal API needed for this was added
|
||||
# We are basically doing the same for older Python versions. The internal API needed for this was added
|
||||
# in https://github.com/python/cpython/commit/666991fc598bc312d72aff0078ecb553f0a968f1, which was first
|
||||
# released in Python 3.10.0.
|
||||
def _convert_chain(chain):
|
||||
|
||||
@@ -704,7 +704,7 @@ class CRL(OpenSSLObject):
|
||||
if entry['issuer'] is not None:
|
||||
# Normalize to IDNA. If this is used-provided, it was already converted to
|
||||
# IDNA (by cryptography_get_name) and thus the `idna` library is present.
|
||||
# If this is coming from cryptography and isn't already in IDNA (i.e. ascii),
|
||||
# If this is coming from cryptography and is not already in IDNA (i.e. ascii),
|
||||
# cryptography < 2.1 must be in use, which depends on `idna`. So this should
|
||||
# not require `idna` except if it was already used by code earlier during
|
||||
# this invocation.
|
||||
|
||||
Reference in New Issue
Block a user