changes or whateva

master
Matthew 2021-07-01 21:24:44 -04:00
parent 2d81ab48a6
commit e42ad33a86
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 10 additions and 0 deletions

View File

@ -109,6 +109,10 @@ If the status !== `true`, there will be a message field which displays the error
locality: string[],
country: string[],
},
aia: {
issuingCertificateURL: string,
ocspServer: string,
},
validationType: 'DV' | 'OV' | 'EV',
signatureAlgorithm: string,
publicKeyAlgorithm: string,
@ -137,6 +141,7 @@ If the status !== `true`, there will be a message field which displays the error
extendedKeyUsage: number[],
extendedKeyUsageAsText: ['All/Any Usages', 'TLS Web Server Authentication', 'TLS Web Client Authentication', 'Code Signing', 'E-mail Protection (S/MIME)'],
san: string,
emailAddresses: string,
fingerprint: string,
}
```

View File

@ -339,6 +339,10 @@ func GetCertificateInfo(c *gin.Context) {
"locality": rootCertificate.Issuer.Locality,
"country": rootCertificate.Issuer.Country,
},
"aia": gin.H{
"issuingCertificateURL": certificate.IssuingCertificateURL,
"ocspServer": certificate.OCSPServer,
},
"validationType": validationType,
"signatureAlgorithm": certificate.SignatureAlgorithm.String(),
"publicKeyAlgorithm": certificate.PublicKeyAlgorithm.String(),
@ -350,6 +354,7 @@ func GetCertificateInfo(c *gin.Context) {
"extendedKeyUsage": extendedKeyUsages,
"extendedKeyUsageAsText": extendedKeyUsagesText,
"san": certificate.DNSNames,
"emailAddresses": certificate.EmailAddresses,
"fingerprint": hex.EncodeToString(sum[:]),
"bitLength": bitLength,
"connection": gin.H{