changes or whateva
parent
2d81ab48a6
commit
e42ad33a86
|
@ -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,
|
||||
}
|
||||
```
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue