[gnutls-help] GnuTLS selftest pem2 error:

Mat Troi mattroisang at gmail.com
Thu Mar 12 00:09:11 CET 2015

I am trying to run the selftest, and it fails at pem2.

Test output:
Testing pem2...
Hostname correctly does not match (0)
        subject `CN=#130f7777772e6578616d706c652e6f7267', issuer
`CN=#130f7777772e6578616d706c652e6f7267', RSA key 1024 bits, signed using
RSA-SHA, activated `2007-02-16 13:30:30 UTC', expires `2007-03-30 13:30:32
UTC', SHA-1 fingerprint `39e3f8fec6a8d842390b6536998a957c1a6b7322'
return is 0
Hostname incorrectly does not match (0)

The code is:
  "X.509 Certificate Information:\n"
  "        Version: 3\n"
  "        Serial Number (hex): 00\n"
  "        Issuer: CN=www.example.org\n"
  "        Validity:\n"
  "                Not Before: Fri Feb 16 13:30:30 UTC 2007\n"
  "                Not After: Fri Mar 30 13:30:32 UTC 2007\n"
  "        Subject: CN=www.example.org\n"
  ret = gnutls_x509_crt_check_hostname (cert, "www.example.org\n");
  printf ("return is %d\n", ret);
  if (ret)
    success ("Hostname correctly matches (%d)\n", ret);
    fail ("Hostname incorrectly does not match (%d)\n", ret);

I don't understand why is the hostname not matching.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20150311/dd48935e/attachment.html>

More information about the Gnutls-help mailing list