fix: update certificate type handling in stringifyCollection function (#6986)

This commit is contained in:
naman-bruno
2026-01-30 15:51:04 +05:30
committed by GitHub
parent 8fface4bbe
commit 3996b86bcb

View File

@@ -124,7 +124,7 @@ const stringifyCollection = (collectionRoot: any, brunoConfig: any): string => {
if (brunoConfig.clientCertificates?.certs?.length) {
oc.config.clientCertificates = brunoConfig.clientCertificates.certs
.map((cert: any): ClientCertificate | null => {
if (cert.type === 'pem') {
if (cert.type === 'cert') {
const pemCert: PemCertificate = {
domain: cert.domain,
type: 'pem',
@@ -133,7 +133,7 @@ const stringifyCollection = (collectionRoot: any, brunoConfig: any): string => {
...(cert.passphrase && { passphrase: cert.passphrase })
};
return pemCert;
} else if (cert.type === 'pkcs12') {
} else if (cert.type === 'pfx') {
const pkcs12Cert: Pkcs12Certificate = {
domain: cert.domain,
type: 'pkcs12',