Share via


AttestationAdministrationClient.AddPolicyManagementCertificate Method

Definition

Adds the specified new signing certificate to the set of policy management certificates.

public virtual Azure.Security.Attestation.AttestationResponse<Azure.Security.Attestation.PolicyCertificatesModificationResult> AddPolicyManagementCertificate (System.Security.Cryptography.X509Certificates.X509Certificate2 newSigningCertificate, Azure.Security.Attestation.AttestationTokenSigningKey existingSigningKey, System.Threading.CancellationToken cancellationToken = default);
abstract member AddPolicyManagementCertificate : System.Security.Cryptography.X509Certificates.X509Certificate2 * Azure.Security.Attestation.AttestationTokenSigningKey * System.Threading.CancellationToken -> Azure.Security.Attestation.AttestationResponse<Azure.Security.Attestation.PolicyCertificatesModificationResult>
override this.AddPolicyManagementCertificate : System.Security.Cryptography.X509Certificates.X509Certificate2 * Azure.Security.Attestation.AttestationTokenSigningKey * System.Threading.CancellationToken -> Azure.Security.Attestation.AttestationResponse<Azure.Security.Attestation.PolicyCertificatesModificationResult>
Public Overridable Function AddPolicyManagementCertificate (newSigningCertificate As X509Certificate2, existingSigningKey As AttestationTokenSigningKey, Optional cancellationToken As CancellationToken = Nothing) As AttestationResponse(Of PolicyCertificatesModificationResult)

Parameters

newSigningCertificate
X509Certificate2

The new certificate to add.

existingSigningKey
AttestationTokenSigningKey

An existing key corresponding to the existing certificate.

cancellationToken
CancellationToken

Cancellation token used to cancel this operation.

Returns

An AttestationResponse<T> with the policy for the specified attestation type.

Applies to