load_cert

ciecplib.x509.load_cert(path)

Load an X.509 certificate from file containing PEM-encoded data.

Parameters:

path (str, pathlib.Path) – the file path from which to read

Returns:

cert (cryptography.x509.Certificate) – the parsed certificate