feat: add download command to retrieve PEM bundle from Key Vault

This commit is contained in:
2026-05-21 23:47:49 +02:00
parent a92bdabac3
commit 72e47e2a9d
3 changed files with 40 additions and 1 deletions
+7
View File
@@ -131,6 +131,13 @@ export class Provisioner {
return result;
}
async download(domain: string): Promise<string> {
const certName = domainToCertName(domain);
const pem = await this.store.getSecret(certName);
if (!pem) throw new Error(`Certificate not found in KeyVault: ${certName}`);
return pem;
}
async scan(): Promise<DomainRecord[]> {
return scanDnsZones(this.credential, this.config);
}