Class VaultCertificate
java.lang.Object
com.microsoft.azure.management.compute.VaultCertificate
Describes a single certificate reference in a Key Vault, and where the
certificate should reside on the VM.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet for Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added.Get this is the URL of a certificate that has been uploaded to Key Vault as a secret.withCertificateStore
(String certificateStore) Set for Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added.withCertificateUrl
(String certificateUrl) Set this is the URL of a certificate that has been uploaded to Key Vault as a secret.
-
Constructor Details
-
VaultCertificate
public VaultCertificate()
-
-
Method Details
-
certificateUrl
Get 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](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). 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>}.- Returns:
- the certificateUrl value
-
withCertificateUrl
Set 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](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). 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>}.- Parameters:
certificateUrl
- the certificateUrl value to set- Returns:
- the VaultCertificate object itself.
-
certificateStore
Get 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.- Returns:
- the certificateStore value
-
withCertificateStore
Set 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.- Parameters:
certificateStore
- the certificateStore value to set- Returns:
- the VaultCertificate object itself.
-