Skip to content

Commit

Permalink
chore: update TlsConfig type
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 21, 2024
1 parent 0b3ed8d commit 47dc3cb
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
export interface TlsConfig {
hostCertCN: string
domain: string
caCertPath: string
certPath: string
keyPath: string
rootCAObject?: { certificate: string, privateKey: string }
rootCAObject: { certificate: string, privateKey: string }
altNameIPs: string[]
altNameURIs: string[]
commonName: string
validityDays: number
organizationName: string
countryName: string
stateName: string
localityName: string
organizationName: string
validityDays: number
commonName: string
subjectAltNames: SubjectAltName[]
keyUsage: {
digitalSignature: boolean
contentCommitment: boolean
keyEncipherment: boolean
dataEncipherment: boolean
keyAgreement: boolean
keyCertSign: boolean
cRLSign: boolean
encipherOnly: boolean
decipherOnly: boolean
}
extKeyUsage: {
serverAuth: boolean
clientAuth: boolean
codeSigning: boolean
emailProtection: boolean
timeStamping: boolean
}
basicConstraints: {
cA: boolean
pathLenConstraint: number
}
isCA: boolean
certificateAttributes: Array<{
shortName: string
value: string
}>
verbose: boolean
}

Expand Down

0 comments on commit 47dc3cb

Please sign in to comment.