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 filepkcs12 (
OpenSSL.crypto.PKCS12) – a PKCS12 archiveuse_proxy (
bool, optional) – ifTrue, generate an impersonation proxy, otherwise generate a standard end entity credential certificateminhours (
int, optional) – the minimum duration of the proxy certificate, only used ifproxy=Trueis given