changes and additions to x509 lone parse

master
Matthew 2021-07-01 21:20:55 -04:00
parent 92e03c4b06
commit 2d81ab48a6
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 5 additions and 0 deletions

View File

@ -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,
})