TrustPoint-Project / trustpoint

MIT License
5 stars 0 forks source link

Credential serializer, added zip and tar.gz serialization #81

Closed AlexHx8472 closed 2 months ago

AlexHx8472 commented 2 months ago

Credential serializer, added zip and tar.gz serialization

Description of changes Methods added to CredentialSerializer class to support zip and tar.gz files containing PEM files. The private key can either be stored as PKCS#1 or PKCS#8 (default).

Methods added: get_as_separate_pem_files(self, password: None | bytes = None, pkcs1: bool = False) -> tuple[bytes, bytes, bytes] as_pem_zip(self, password: None | bytes = None, pkcs1: bool = False) -> bytes as_pem_tar_gz(self, password: None | bytes = None, pkcs1: bool = False) -> bytes

Legal