Gnutls

Added a check to test X509 expirations time from file rather then by ssl connection.