azure-sdk-for-cpp/sdk/attestation/azure-security-attestation/samples/policy-certificates/README.md
Ronnie Geraghty b391d65809
Docs links coversion: docs.microsoft.com -> learn.microsoft.com (#6276)
* Docs links coversion: docs.microsoft.com -> learn.microsoft.com
Some markdown formatting

* Adding "msrc" to cspell words

* Undoing things auto formatter did

* Appling Ahson's suggestions
2024-12-16 09:32:19 -08:00

1.9 KiB

page_type languages products urlFragment
sample
C++
azure
azure-attestation
attestation-samples

Isolated Mode Certificate Samples for the Microsoft Azure Attestation client library for C++

These code samples show how to enumerate, add and remove isolated mode management certificates using the Attestation client library.

Sample Requirements

These samples are written with the assumption that the following environment variables have been set by the user:

  • ATTESTATION_AAD_URL - the base URL for an attestation service instance in AAD mode.
  • ATTESTATION_ISOLATED_URL - the base URL for an attestation service instance in Isolated mode.
  • ISOLATED_SIGNING_KEY - a Base64 encoded ASN.1 DER representation of a private key used when creating the ATTESTATION_ISOLATED_URL instance.
  • ISOLATED_SIGNING_CERTIFICATE - a Base64 encoded DER X.509 certificate wrapping the public key of the ISOLATED_SIGNING_KEY.

Note: The Isolated Mode Certificate samples depend on the OpenSSL library to perform basic cryptographic operations on X.509 certificates.

Samples descriptions

The samples are structured as separate source files, one per scenario. The are:

Sample What it tests Notes
Get_Policy_Certificates Enumerates the policy management certificates for the specified attestation service instance.
Add_Policy_Certificates Adds and removes a policy management certificates for the specified attestation service instance.

Additional Information

Next Steps

For more information about the Microsoft Azure Attestation service, please see our documentation page .