diff --git a/README.md b/README.md index 7992e4d..046f095 100644 --- a/README.md +++ b/README.md @@ -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, } ``` diff --git a/routes/get.go b/routes/get.go index 075fdc2..f932ebe 100644 --- a/routes/get.go +++ b/routes/get.go @@ -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{