Skip to content

Commit c527087

Browse files
committed
chore: make subjectAltNames nullable
1 parent bc63402 commit c527087

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/config.ts

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ export const config: TlsConfig = await loadConfig({
2121
caCertPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.ca.crt`),
2222
certPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt`),
2323
keyPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt.key`),
24-
subjectAltNames: [{
25-
type: 2,
26-
value: 'stacks.localhost',
27-
}],
2824
verbose: false,
2925
},
3026
})

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export interface TlsConfig {
99
stateName: string
1010
localityName: string
1111
commonName: string
12-
subjectAltNames: SubjectAltName[]
1312
keyPath: string
1413
certPath: string
1514
caCertPath: string
15+
subjectAltNames?: SubjectAltName[]
1616
rootCAObject?: { certificate: string, privateKey: string }
1717
keyUsage?: {
1818
digitalSignature: boolean

0 commit comments

Comments
 (0)