load_x509_certificate_file

igwn_auth_utils.x509.load_x509_certificate_file(file, backend=None)

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

Parameters:
  • file (str, pathlib.Path, file) – file object or path to read from

  • backend (module, optional) – the cryptography backend to use

Returns:

cert – the X.509 certificate

Return type:

cryptography.x509.Certificate