Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyVault ¶
type KeyVault struct { keyvault.BaseClient // contains filtered or unexported fields }
KeyVault provides an interface towards the Azure Key Vault primarily used for upload and download of SSL certificates.
func NewFromCLI ¶
Create a new connection to an Azure key vault and use authentication credentials from Azure CLI. You must be logged in to Azure CLI to use this auth method.
func NewFromEnv ¶
Create a new connection to an Azure key vault and fetch authentication from environment variables. See available env var authentications here https://docs.microsoft.com/en-us/azure/developer/go/azure-sdk-authorization#use-environment-based-authentication
func (KeyVault) GetCertificate ¶
func (v KeyVault) GetCertificate(ctx context.Context, certName string, secretVersion string, certPassword string) (*x509.Certificate, *rsa.PrivateKey, error)
GetCertificate downloads a certificate and private key from the given Azure key vault.
func (KeyVault) UploadCertificate ¶
func (v KeyVault) UploadCertificate(ctx context.Context, cert *x509.Certificate, key *rsa.PrivateKey, certName string, certPassword string) error
UploadCertificate uploads a new certificate and key pair to the given Azure key vault