changes and additions to x509 lone parse
parent
92e03c4b06
commit
2d81ab48a6
|
@ -163,6 +163,10 @@ func GetCertificateInformationEncoded(c *gin.Context) {
|
|||
"locality": certificate.Issuer.Locality,
|
||||
"country": certificate.Issuer.Country,
|
||||
},
|
||||
"aia": gin.H{
|
||||
"issuingCertificateURL": certificate.IssuingCertificateURL,
|
||||
"ocspServer": certificate.OCSPServer,
|
||||
},
|
||||
"validationType": validationType,
|
||||
"signatureAlgorithm": certificate.SignatureAlgorithm.String(),
|
||||
"publicKeyAlgorithm": certificate.PublicKeyAlgorithm.String(),
|
||||
|
@ -174,6 +178,7 @@ func GetCertificateInformationEncoded(c *gin.Context) {
|
|||
"extendedKeyUsage": extendedKeyUsages,
|
||||
"extendedKeyUsageAsText": extendedKeyUsagesText,
|
||||
"san": certificate.DNSNames,
|
||||
"emailAddresses": certificate.EmailAddresses,
|
||||
"fingerprint": hex.EncodeToString(sum[:]),
|
||||
"bitLength": bitLength,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue