Skip to content

Commit

Permalink
chore: config add
Browse files Browse the repository at this point in the history
  • Loading branch information
mohameedsherif committed Aug 1, 2024
1 parent fa2175c commit 2afe541
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { log } from '@stacksjs/logging'
import { CAC } from 'cac'
import { version } from '../package.json'
import { addCertToSystemTrustStoreAndSaveCerts, createRootCA, generateCert } from '../src'
import {config} from '../src/config'
import { config } from '../src/config'

const cli = new CAC('tlsx')

Expand All @@ -27,7 +27,6 @@ cli
.usage('tlsx secure <domain> [options]')
.example('tlsx secure example.com --output /etc/ssl')
.action(async (domain: string, options?: Options) => {

domain = domain ?? config?.ssl?.altNameURIs[0]

log.info(`Generating a self-signed SSL certificate for: ${domain}`)
Expand Down

0 comments on commit 2afe541

Please sign in to comment.