-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb0c716
commit 39f53c0
Showing
4 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export interface TlsConfig { | ||
ssl: { | ||
commonName: string | ||
countryName: string | ||
stateName: string | ||
localityName: string | ||
organizationName: string | ||
organizationalUnitName: string | ||
validityYears: number | ||
} | ||
} | ||
|
||
export interface GenerateCertOptions { | ||
altNameIPs?: string[] | ||
altNameURIs?: string[] | ||
validityDays?: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import type { TlsConfig } from './src/types' | ||
|
||
export default { | ||
commonName: 'stacks.localhost', | ||
countryName: 'US', | ||
stateName: 'California', | ||
localityName: 'Playa Vista', | ||
organizationName: 'Stacks', | ||
organizationalUnitName: 'Acme', | ||
validityYears: 1, | ||
} | ||
ssl: { | ||
commonName: 'stacks.localhost', | ||
countryName: 'US', | ||
stateName: 'California', | ||
localityName: 'Playa Vista', | ||
organizationName: 'Stacks', | ||
organizationalUnitName: 'Acme', | ||
validityYears: 1, | ||
}, | ||
} satisfies TlsConfig |