Skip to content

Commit

Permalink
chore: make subjectAltNames nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 21, 2024
1 parent bc63402 commit c527087
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export const config: TlsConfig = await loadConfig({
caCertPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.ca.crt`),
certPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt`),
keyPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt.key`),
subjectAltNames: [{
type: 2,
value: 'stacks.localhost',
}],
verbose: false,
},
})
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export interface TlsConfig {
stateName: string
localityName: string
commonName: string
subjectAltNames: SubjectAltName[]
keyPath: string
certPath: string
caCertPath: string
subjectAltNames?: SubjectAltName[]
rootCAObject?: { certificate: string, privateKey: string }
keyUsage?: {
digitalSignature: boolean
Expand Down

0 comments on commit c527087

Please sign in to comment.