Class VaultCertificate
Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
public class VaultCertificate
Constructors
VaultCertificate()
Initializes a new instance of the VaultCertificate class.
Declaration
public VaultCertificate ();
VaultCertificate(String, String)
Initializes a new instance of the VaultCertificate class.
Declaration
public VaultCertificate (string certificateUrl = null, string certificateStore = null);
Parameters
|
String
certificateUrl
This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>} |
|
String
certificateStore
For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. |
Properties
CertificateStore
Gets or sets for Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name &lt;UppercaseThumbprint&gt;.crt for the X509 certificate file and &lt;UppercaseThumbprint&gt;.prv for private key. Both of these files are .pem formatted.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="certificateStore")]
public string CertificateStore { get; set; }
Property Value
|
String
|
CertificateUrl
Gets or sets this is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>}
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="certificateUrl")]
public string CertificateUrl { get; set; }
Property Value
|
String
|