cloudvision.Connector.auth package
Submodules
cloudvision.Connector.auth.cert module
- cloudvision.Connector.auth.cert.cert_from_pem(cert_pem: bytes) Certificate [source]
Generate cert object from PEM encoded cert.
- Parameters:
cert_pem – Certificate PEM data
- Returns:
Certificate object
- cloudvision.Connector.auth.cert.create_csr(cert: Certificate, key: Any) CertificateSigningRequest [source]
Create CSR from given cert and private key.
- Parameters:
cert – Certificate object
key – Private Key object
- Returns:
CSR object
- cloudvision.Connector.auth.cert.gen_csr_der(cert_path: str, key_path: str) bytes [source]
Generate ASN.1 DER encoded CSR.
- Parameters:
cert_path – Certificate file path (PEM encoded)
key_path – Private Key file path (PEM encoded)
- Returns:
ASN.1 DER encoded CSR data
- cloudvision.Connector.auth.cert.key_from_pem(key_pem: bytes, passphrase: bytes | None = None) Any [source]
Generate key object from PEM encoded private key.
- Parameters:
key_pem – Private key (PEM encoded)
passphrase – Passphrase used to decrypt the key
- Returns:
Private key object
- cloudvision.Connector.auth.cert.load_cert(cert_path: str) Certificate [source]
Load certificate file (PEM encoded).
- Parameters:
cert_path – Certificate file (PEM encoded)
- Returns:
Certificate object