Certificates ¶
Bases: CryptoParser
A list of one or more certificates
Attributes: |
|
---|
pem_string
property
¶
pem_string: str
Returns a string containing the PEM-encoded certificates.
Returns: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(crypto_certs: List[x509.Certificate]) -> Certificates
Create a Certificates object from a list of cryptography certificates.
Parameters: |
|
---|
Returns: |
|
---|
from_file
classmethod
¶
from_file(file_path: str) -> Certificates
Reads a file containing one or more PEM certificate(s) into a Certificates object.
Parameters: |
|
---|
Returns: |
|
---|
from_pem_string
classmethod
¶
from_pem_string(pem_string: str) -> Certificates
Create a Certificates object from a PEM string.
Parameters: |
|
---|
Returns: |
|
---|
from_uri
classmethod
¶
from_uri(uris: [str], cache_time_seconds: int = CACHE_TIME_SECONDS) -> Certificates
Loads Certificates from one or more URI(s).
Parameters: |
|
---|
Returns: |
|
---|
to_file ¶
to_file(file_path: str) -> None
Saves one or more certificate(s) into a file.
Parameters: |
|
---|