Ejemplo n.º 1
0
def _get_self_signed_hosting_power(host: str):
    tls_hosting_keypair = HostingKeypair(curve=ec.SECP384R1, host=host)
    tls_hosting_power = TLSHostingPower(keypair=tls_hosting_keypair, host=host)
    return tls_hosting_power
Ejemplo n.º 2
0
def create_node_certificate(host: str, checksum_address: str):
    tls_hosting_keypair = HostingKeypair(host=host,
                                         checksum_address=checksum_address)

    return tls_hosting_keypair.certificate