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

cloudvision.Connector.auth.cert.load_key(key_path: str, passphrase: str | None = None) Any[source]

Load private key file (PEM encoded).

Parameters:
  • key_path – Private key file (PEM encoded)

  • passphrase – Passphrase used to decrypt the key

Returns:

Private key object

cloudvision.Connector.auth.cert.load_key_cert_pair(cert_path: str, key_path: str) Tuple[Certificate, Any][source]

Load key & cert files.

Parameters:
  • cert_path – Certificate file path (PEM encoded)

  • key_path – Private key file path (PEM encoded)

Returns:

Certificate and Key object

Module contents