igwn_auth_utils.x509

Utilities for discovering and handling X.509 credentials.

Functions

indent(text, prefix[, predicate])

Adds 'prefix' to the beginning of selected lines in 'text'.

is_valid_certificate(cert[, timeleft])

Return True if cert contains a valid X.509 certificate.

load_x509_certificate_file(file[, backend])

Load a PEM-format X.509 certificate from a file, or file path.

validate_certificate(cert[, timeleft])

Validate an X.509 certificate by checking it's expiry time.

wraps(wrapped[, assigned, updated])

Decorator factory to apply update_wrapper() to a wrapper function

x509_deprecation(func)

Wrap func with a warning about X.509 support being dropped.