From 2d81ab48a6813fd438ded2bf503d5fa0e06c9344 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 1 Jul 2021 21:20:55 -0400 Subject: [PATCH] changes and additions to x509 lone parse --- routes/get.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/get.go b/routes/get.go index 0c0bbce..075fdc2 100644 --- a/routes/get.go +++ b/routes/get.go @@ -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, })