Made certificate validation optional.