@@ -75,9 +75,7 @@ func CertFields(hostCert *x509.Certificate, verifiedChains [][]*x509.Certificate
75
75
_ , _ = x509Fields .Put ("signature_algorithm" , hostCert .SignatureAlgorithm .String ())
76
76
_ , _ = x509Fields .Put ("public_key_algorithm" , hostCert .PublicKeyAlgorithm .String ())
77
77
_ , _ = x509Fields .Put ("not_before" , hostCert .NotBefore )
78
- _ , _ = tlsFields .Put ("certificate_not_valid_before" , hostCert .NotBefore )
79
78
_ , _ = x509Fields .Put ("not_after" , hostCert .NotAfter )
80
- _ , _ = tlsFields .Put ("certificate_not_valid_after" , hostCert .NotAfter )
81
79
if rsaKey , ok := hostCert .PublicKey .(* rsa.PublicKey ); ok {
82
80
sizeInBits := rsaKey .Size () * 8
83
81
_ , _ = x509Fields .Put ("public_key_size" , sizeInBits )
@@ -115,12 +113,8 @@ func CertFields(hostCert *x509.Certificate, verifiedChains [][]*x509.Certificate
115
113
latestChainExpiration = * chainNotAfter
116
114
}
117
115
118
- // Legacy non-ECS field
119
- _ , _ = tlsFields .Put ("certificate_not_valid_before" , chainNotBefore )
120
116
_ , _ = x509Fields .Put ("not_before" , chainNotBefore )
121
117
if chainNotAfter != nil {
122
- // Legacy non-ECS field
123
- _ , _ = tlsFields .Put ("certificate_not_valid_after" , * chainNotAfter )
124
118
_ , _ = x509Fields .Put ("not_after" , * chainNotAfter )
125
119
}
126
120
}
0 commit comments