class Azure::Compute::Mgmt::V2019_03_01::Models::VaultCertificate
Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.
Attributes
@return [String] 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.
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.
@return [String] 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](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:
{
“data”:“<Base64-encoded-certificate>”,
“dataType”:“pfx”,
“password”:“<pfx-file-password>”
}
Private Class Methods
Mapper for VaultCertificate class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2019-03-01/generated/azure_mgmt_compute/models/vault_certificate.rb, line 40 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'VaultCertificate', type: { name: 'Composite', class_name: 'VaultCertificate', model_properties: { certificate_url: { client_side_validation: true, required: false, serialized_name: 'certificateUrl', type: { name: 'String' } }, certificate_store: { client_side_validation: true, required: false, serialized_name: 'certificateStore', type: { name: 'String' } } } } } end