1
0
Fork 0

update x509 typings

refactor/models
Matthew 2019-10-30 00:03:28 -04:00
parent 79ca0d82ce
commit fe2b352b58
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 7 additions and 3 deletions

10
types/x509.d.ts vendored
View File

@ -5,7 +5,9 @@ declare module '@ghaiklor/x509' {
stateOrProvinceName: string, stateOrProvinceName: string,
localityName: string, localityName: string,
organizationName: string, organizationName: string,
commonName: string organizationalUnitName: string,
commonName: string,
emailAddress: string
} }
interface Subject { interface Subject {
countryName: string, countryName: string,
@ -15,7 +17,8 @@ declare module '@ghaiklor/x509' {
streetAddress: string, streetAddress: string,
organizationName: string, organizationName: string,
organizationalUnitName: string, organizationalUnitName: string,
commonName: string commonName: string,
emailAddress: string
} }
interface Extensions { interface Extensions {
keyUsage: string, keyUsage: string,
@ -34,7 +37,8 @@ declare module '@ghaiklor/x509' {
version: number, version: number,
subject: Certificate.Subject, subject: Certificate.Subject,
issuer: Certificate.Issuer, issuer: Certificate.Issuer,
serial: number, fingerPrint: string,
serial: string,
notBefore: Date, notBefore: Date,
notAfter: Date, notAfter: Date,
subjectHash: string, subjectHash: string,