Share via


ImportCertificateOptions(String, Byte[]) Constructor

Definition

Initializes a new instance of the ImportCertificateOptions class.

public ImportCertificateOptions (string name, byte[] certificate);
new Azure.Security.KeyVault.Certificates.ImportCertificateOptions : string * byte[] -> Azure.Security.KeyVault.Certificates.ImportCertificateOptions
Public Sub New (name As String, certificate As Byte())

Parameters

name
String

A name for the imported certificate.

certificate
Byte[]

The PFX or ASCII PEM-formatted value of the certificate containing both the X.509 certificates and the private key.

Exceptions

name is empty.

name or certificate is null.

Remarks

If importing an ASCII PEM-formatted certificate, you must also create a CertificatePolicy with ContentType set to Pem, and set the Policy property. If the Policy property or ContentType property is not set, Pkcs12 is assumed and the import will fail.

Applies to