Skip to content

Commit

Permalink
test: fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mohameedsherif committed May 14, 2024
1 parent dfe9138 commit ce1ef5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cli
const CAcert = await CreateRootCA()

// await generateCert()
const HostCert = await generateCert('Tlsx Stacks RootCA', domain, CAcert, options)
const HostCert = await generateCert('Tlsx Stacks RootCA', domain, CAcert)

// await addCertToSystemTrustStoreAndSaveCerts()
await addCertToSystemTrustStoreAndSaveCerts(HostCert.certificate, CAcert.certificate)
Expand Down
13 changes: 8 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ export interface TlsOptions {
}

export interface GenerateCertOptions {
output: string
key: string
cert: string
ca: string
verbose: boolean
altNameIPs?: string[]
altNameURIs?: string[]
validityDays?: number
organizationName?: string
countryName?: string
stateName?: string
localityName?: string
commonName?: string
}

export type TlsConfig = DeepPartial<TlsOptions>

0 comments on commit ce1ef5e

Please sign in to comment.