Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Created January 17, 2023 13:13
Show Gist options
  • Save ItayPodhajcer/5c48d14894574957a7720fafb6fce932 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/5c48d14894574957a7720fafb6fce932 to your computer and use it in GitHub Desktop.
terraform-azure-confidential-ledger/test-ledger.py#identity
identity_client = ConfidentialLedgerCertificateClient(identity_url)
network_identity = identity_client.get_ledger_identity(
ledger_id=ledger_name
)
ledger_tls_cert_file_name = "ledgercert.pem"
with open(ledger_tls_cert_file_name, "w") as cert_file:
cert_file.write(network_identity['ledgerTlsCertificate'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment