changes or whateva

master
Matthew 2021-07-01 21:24:44 -04:00
parent 2d81ab48a6
commit e42ad33a86
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 10 additions and 0 deletions

View File

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

View File

@ -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{