write_cert

ciecplib.x509.write_cert(path, cert, key, use_proxy=False, minhours=168)

Write a PKCS12 certificate archive to file in X509 format.

Parameters:
  • path (str, pathlib.Path) – the desired location of the final X509 file

  • pkcs12 (OpenSSL.crypto.PKCS12) – a PKCS12 archive

  • use_proxy (bool, optional) – if True, generate an impersonation proxy, otherwise generate a standard end entity credential certificate

  • minhours (int, optional) – the minimum duration of the proxy certificate, only used if proxy=True is given