diff --git a/lib/gtls.c b/lib/gtls.c
index c7c38642fde218042c2e4861445752a8993fdc0a..e980a5bdc3db9622cec622d103420b7ef0e59b27 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -344,10 +344,6 @@ Curl_gtls_connect(struct connectdata *conn,
   }
 
   if(data->set.ssl.verifypeer) {
-
-    gnutls_certificate_set_verify_limits(conn->ssl[sockindex].cred,
-                                         40200, 38);
-
     /* This function will try to verify the peer's certificate and return its
        status (trusted, invalid etc.). The value of status should be one or
        more of the gnutls_certificate_status_t enumerated elements bitwise