What steps to perform when validating a certificate received from a server.
Server certificates that fail to validate in all of the ways indicated here will be rejected unless the application overrides the default via accept_certificate.