est.tests.clientΒΆ

Basic test EST client implementation.

AttributesΒΆ

ClassesΒΆ

ESTClient

EST Client representing a single EST request.

Module ContentsΒΆ

class est.tests.client.ESTClient(est_url, auth_type, domain=None, cert_template=None, username=None, password=None, cert_path=None, key_path=None, ca_cert_path=None, out_cert_path=None, out_key_path=None)[source]ΒΆ

EST Client representing a single EST request.

est_url[source]ΒΆ
auth_type[source]ΒΆ
domain = None[source]ΒΆ
cert_template = None[source]ΒΆ
username = None[source]ΒΆ
password = None[source]ΒΆ
cert_path = None[source]ΒΆ
key_path = None[source]ΒΆ
ca_cert_path = None[source]ΒΆ
out_cert_path = None[source]ΒΆ
out_key_path = None[source]ΒΆ
session[source]ΒΆ
_get_auth()[source]ΒΆ

Returns authentication parameters based on the chosen method.

Return type:

tuple

enroll(common_name, serial_number, save_key=True)[source]ΒΆ

Performs EST enrollment to obtain a new certificate, with an option to store the private key.

Return type:

None

reenroll(cert_path, key_path=None, generate_new_key=False)[source]ΒΆ

Performs EST reenrollment using an existing certificate.

Parameters:
  • cert_path – Path to the existing certificate

  • key_path – Path to the existing private key (if using existing key)

  • generate_new_key – Boolean to determine if a new key should be generated

Return type:

None

get_ca_certificates()[source]ΒΆ

Retrieves CA certificates from the EST /cacerts endpoint.

Return type:

None

est.tests.client.dc_client[source]ΒΆ