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[],
|
locality: string[],
|
||||||
country: string[],
|
country: string[],
|
||||||
},
|
},
|
||||||
|
aia: {
|
||||||
|
issuingCertificateURL: string,
|
||||||
|
ocspServer: string,
|
||||||
|
},
|
||||||
validationType: 'DV' | 'OV' | 'EV',
|
validationType: 'DV' | 'OV' | 'EV',
|
||||||
signatureAlgorithm: string,
|
signatureAlgorithm: string,
|
||||||
publicKeyAlgorithm: string,
|
publicKeyAlgorithm: string,
|
||||||
|
@ -137,6 +141,7 @@ If the status !== `true`, there will be a message field which displays the error
|
||||||
extendedKeyUsage: number[],
|
extendedKeyUsage: number[],
|
||||||
extendedKeyUsageAsText: ['All/Any Usages', 'TLS Web Server Authentication', 'TLS Web Client Authentication', 'Code Signing', 'E-mail Protection (S/MIME)'],
|
extendedKeyUsageAsText: ['All/Any Usages', 'TLS Web Server Authentication', 'TLS Web Client Authentication', 'Code Signing', 'E-mail Protection (S/MIME)'],
|
||||||
san: string,
|
san: string,
|
||||||
|
emailAddresses: string,
|
||||||
fingerprint: string,
|
fingerprint: string,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -339,6 +339,10 @@ func GetCertificateInfo(c *gin.Context) {
|
||||||
"locality": rootCertificate.Issuer.Locality,
|
"locality": rootCertificate.Issuer.Locality,
|
||||||
"country": rootCertificate.Issuer.Country,
|
"country": rootCertificate.Issuer.Country,
|
||||||
},
|
},
|
||||||
|
"aia": gin.H{
|
||||||
|
"issuingCertificateURL": certificate.IssuingCertificateURL,
|
||||||
|
"ocspServer": certificate.OCSPServer,
|
||||||
|
},
|
||||||
"validationType": validationType,
|
"validationType": validationType,
|
||||||
"signatureAlgorithm": certificate.SignatureAlgorithm.String(),
|
"signatureAlgorithm": certificate.SignatureAlgorithm.String(),
|
||||||
"publicKeyAlgorithm": certificate.PublicKeyAlgorithm.String(),
|
"publicKeyAlgorithm": certificate.PublicKeyAlgorithm.String(),
|
||||||
|
@ -350,6 +354,7 @@ func GetCertificateInfo(c *gin.Context) {
|
||||||
"extendedKeyUsage": extendedKeyUsages,
|
"extendedKeyUsage": extendedKeyUsages,
|
||||||
"extendedKeyUsageAsText": extendedKeyUsagesText,
|
"extendedKeyUsageAsText": extendedKeyUsagesText,
|
||||||
"san": certificate.DNSNames,
|
"san": certificate.DNSNames,
|
||||||
|
"emailAddresses": certificate.EmailAddresses,
|
||||||
"fingerprint": hex.EncodeToString(sum[:]),
|
"fingerprint": hex.EncodeToString(sum[:]),
|
||||||
"bitLength": bitLength,
|
"bitLength": bitLength,
|
||||||
"connection": gin.H{
|
"connection": gin.H{
|
||||||
|
|
Loading…
Reference in New Issue