Skip to content

Commit

Permalink
chore: ensure verbose is configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Dec 2, 2024
1 parent 08e61e8 commit 0c2bb22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function generateBaseConfig(options: ReverseProxyConfigs, verbose?: boolean): Tl
} satisfies TlsConfig
}

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

return {
Expand All @@ -106,7 +106,7 @@ function generateRootCAConfig(): TlsConfig {
localityName: 'Playa Vista',
commonName: 'stacks.localhost',
validityDays: 3650,
verbose: true,
verbose,
}
}

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

// Generate Root CA first
const rootCAConfig = generateRootCAConfig()
const rootCAConfig = generateRootCAConfig(verbose)
log.info('Generating Root CA certificate...')
const caCert = await createRootCA(rootCAConfig)

Expand Down

0 comments on commit 0c2bb22

Please sign in to comment.