You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Go Playground example in the References section below explicitly sets the x509.VerifyOptions.CurrentTime value to aid in testing certificate verification:
I should use a similar approach and add test coverage for certificate expiration.
As part of this, I should search out code directly performing date evaluation and extend (if needed) to allow setting/injecting a known date test value.
NOTE:
The Go Playground example in the References section below explicitly sets the
x509.VerifyOptions.CurrentTime
value to aid in testing certificate verification:I should use a similar approach and add test coverage for certificate expiration.
As part of this, I should search out code directly performing date evaluation and extend (if needed) to allow setting/injecting a known date test value.
References
The text was updated successfully, but these errors were encountered: