changes and additions to x509 lone parse
parent
92e03c4b06
commit
2d81ab48a6
|
@ -163,6 +163,10 @@ func GetCertificateInformationEncoded(c *gin.Context) {
|
||||||
"locality": certificate.Issuer.Locality,
|
"locality": certificate.Issuer.Locality,
|
||||||
"country": certificate.Issuer.Country,
|
"country": certificate.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(),
|
||||||
|
@ -174,6 +178,7 @@ func GetCertificateInformationEncoded(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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue