Make certificate chain validity a parameter of the constructor.