fix: update certificate name generation to use random bytes for uniqueness

This commit is contained in:
2026-05-23 09:47:04 +02:00
parent b7fe873dc9
commit d373c8a72d
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
import { execSync } from 'node:child_process';
import { mkdtempSync, readFileSync, rmSync } from 'node:fs';
import { randomBytes } from 'node:crypto';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { DefaultAzureCredential } from '@azure/identity';
@@ -21,7 +22,7 @@ if (!vaultName) {
}
const vaultUrl = `https://${vaultName}.vault.azure.net`;
const CERT_NAME = 'bug-reproduce-test';
const CERT_NAME = `bug-reproduce-${randomBytes(4).toString('hex')}`;
const PFX_PASSWORD = 'test-password-123';
const tmp = mkdtempSync(join(tmpdir(), 'kv-bug-'));