Compare commits
No commits in common. "17ecf3beb577ed559e96dd38caca80ab4605b586" and "f4cfd134121566de642778a654f31aaaaa93bdca" have entirely different histories.
17ecf3beb5
...
f4cfd13412
3 changed files with 1 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ import (
|
||||||
var Version = "built-in"
|
var Version = "built-in"
|
||||||
|
|
||||||
// Definition returns the CheckerDefinition for the TLS checker.
|
// Definition returns the CheckerDefinition for the TLS checker.
|
||||||
func Definition() *sdk.CheckerDefinition {
|
func (p *tlsProvider) Definition() *sdk.CheckerDefinition {
|
||||||
return &sdk.CheckerDefinition{
|
return &sdk.CheckerDefinition{
|
||||||
ID: "tls",
|
ID: "tls",
|
||||||
Name: "TLS",
|
Name: "TLS",
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ func buildChain(certs []*x509.Certificate) []CertInfo {
|
||||||
DERBase64: base64.StdEncoding.EncodeToString(c.Raw),
|
DERBase64: base64.StdEncoding.EncodeToString(c.Raw),
|
||||||
Subject: c.Subject.String(),
|
Subject: c.Subject.String(),
|
||||||
Issuer: c.Issuer.String(),
|
Issuer: c.Issuer.String(),
|
||||||
NotAfter: c.NotAfter,
|
|
||||||
CertSHA256: hex.EncodeToString(certSum256[:]),
|
CertSHA256: hex.EncodeToString(certSum256[:]),
|
||||||
CertSHA512: hex.EncodeToString(certSum512[:]),
|
CertSHA512: hex.EncodeToString(certSum512[:]),
|
||||||
SPKISHA256: hex.EncodeToString(spkiSum256[:]),
|
SPKISHA256: hex.EncodeToString(spkiSum256[:]),
|
||||||
|
|
|
||||||
|
|
@ -84,10 +84,6 @@ type CertInfo struct {
|
||||||
Subject string `json:"subject,omitempty"`
|
Subject string `json:"subject,omitempty"`
|
||||||
Issuer string `json:"issuer,omitempty"`
|
Issuer string `json:"issuer,omitempty"`
|
||||||
|
|
||||||
// NotAfter is the certificate's expiry. Carried so editors can show
|
|
||||||
// "expires on …" without re-parsing the DER.
|
|
||||||
NotAfter time.Time `json:"not_after,omitempty"`
|
|
||||||
|
|
||||||
// Selector 0 = full certificate.
|
// Selector 0 = full certificate.
|
||||||
CertSHA256 string `json:"cert_sha256,omitempty"`
|
CertSHA256 string `json:"cert_sha256,omitempty"`
|
||||||
CertSHA512 string `json:"cert_sha512,omitempty"`
|
CertSHA512 string `json:"cert_sha512,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue