IDpsCertificateOperations.VerifyCertificateWithHttpMessagesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verify certificate's private key possession.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse>> VerifyCertificateWithHttpMessagesAsync (string certificateName, string ifMatch, string resourceGroupName, string provisioningServiceName, string certificatename = default, byte[] certificaterawBytes = default, bool? certificateisVerified = default, string certificatepurpose = default, DateTime? certificatecreated = default, DateTime? certificatelastUpdated = default, bool? certificatehasPrivateKey = default, string certificatenonce = default, string certificate = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member VerifyCertificateWithHttpMessagesAsync : string * string * string * string * string * byte[] * Nullable<bool> * string * Nullable<DateTime> * Nullable<DateTime> * Nullable<bool> * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse>>
Parameters
- certificateName
- String
The mandatory logical name of the certificate, that the provisioning service uses to access.
- ifMatch
- String
ETag of the certificate.
- resourceGroupName
- String
Resource group name.
- provisioningServiceName
- String
Provisioning service name.
- certificatename
- String
Common Name for the certificate.
- certificaterawBytes
- Byte[]
Raw data of certificate.
Indicates if the certificate has been verified by owner of the private key.
- certificatepurpose
- String
Describe the purpose of the certificate. Possible values include: 'clientAuthentication', 'serverAuthentication'
- certificatenonce
- String
Random number generated to indicate Proof of Possession.
- certificate
- String
base-64 representation of X509 certificate .cer file or just .pem file content.
- customHeaders
- Dictionary<String,List<String>>
The headers that will be added to request.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Exceptions
Thrown when the operation returned an invalid status code
Thrown when unable to deserialize the response
Thrown when a required parameter is null
Remarks
Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.
Applies to
Azure SDK for .NET