cterasdk.core.ssl module#

class cterasdk.core.ssl.SSL(portal)#

Bases: BaseCommand

Portal SSL Certificate APIs

create_zip_archive(private_key, *certificates)#

Create a ZIP archive that can be imported to CTERA Portal

Parameters:
  • private_key (str) – The PEM-encoded private key, or a path to the PEM-encoded private key file

  • certificates (list[str]) – The PEM-encoded certificates, or a list of paths of the PEM-encoded certificate files

export(destination=None)#

Export the Portal SSL Certificate to a ZIP archive

Parameters:

destination (str,optional) – File destination, defaults to the default directory

get()#

Retrieve details of the current installed SSL certificate

Return cterasdk.common.object.Object:

An object including the SSL certificate details

import_from_chain(private_key, *certificates)#

Import an SSL Certificate to CTERA Portal from a chain

Parameters:
  • private_key (str) – The PEM-encoded private key, or a path to the PEM-encoded private key file

  • certificates (list[str]) – The PEM-encoded certificates, or a list of paths of the PEM-encoded certificate files

import_from_zip(zipfile)#

Import an SSL Certificate to CTERA Portal from a ZIP archive

Parameters:

zipfile (str) – A zip archive including the private key and SSL certificate chain

property thumbprint#

Get the SHA1 thumbprint of the Portal SSL certificate