Skip to content

Commit 0c2bb22

Browse files
committed
chore: ensure verbose is configurable
1 parent 08e61e8 commit 0c2bb22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/https.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function generateBaseConfig(options: ReverseProxyConfigs, verbose?: boolean): Tl
8989
} satisfies TlsConfig
9090
}
9191

92-
function generateRootCAConfig(): TlsConfig {
92+
function generateRootCAConfig(verbose: boolean = false): TlsConfig {
9393
const sslBase = path.join(os.homedir(), '.stacks', 'ssl')
9494

9595
return {
@@ -106,7 +106,7 @@ function generateRootCAConfig(): TlsConfig {
106106
localityName: 'Playa Vista',
107107
commonName: 'stacks.localhost',
108108
validityDays: 3650,
109-
verbose: true,
109+
verbose,
110110
}
111111
}
112112

@@ -131,7 +131,7 @@ export async function generateCertificate(options: ReverseProxyConfigs): Promise
131131
debugLog('ssl', `Generating certificate for domains: ${domains.join(', ')}`, verbose)
132132

133133
// Generate Root CA first
134-
const rootCAConfig = generateRootCAConfig()
134+
const rootCAConfig = generateRootCAConfig(verbose)
135135
log.info('Generating Root CA certificate...')
136136
const caCert = await createRootCA(rootCAConfig)
137137

0 commit comments

Comments
 (0)