Udostępnij za pośrednictwem


X509Attestation.CreateFromCaReferences(String, String) Method

Definition

Factory with certficiate authority references with primary and secondary.

public static Microsoft.Azure.Devices.Provisioning.Service.X509Attestation CreateFromCaReferences (string primary, string secondary = default);
static member CreateFromCaReferences : string * string -> Microsoft.Azure.Devices.Provisioning.Service.X509Attestation
Public Shared Function CreateFromCaReferences (primary As String, Optional secondary As String = Nothing) As X509Attestation

Parameters

primary
String

The string with the primary certificate. It cannot be null or empty.

secondary
String

The string with the secondary certificate. It can be null or empty (ignored).

Returns

The new instance of the X509Attestation.

Exceptions

If the provided primary string is null.

If the provided primary string is empty or white space.

If the one of the provided primary or secondary certificate is invalid.

Applies to