[Bug 257995] security/gnutls: Cannot connect to some websites

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 22 Aug 2021 15:43:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257995

            Bug ID: 257995
           Summary: security/gnutls: Cannot connect to some websites
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tijl@FreeBSD.org
          Reporter: lantw44@gmail.com
          Assignee: tijl@FreeBSD.org
             Flags: maintainer-feedback?(tijl@FreeBSD.org)

Created attachment 227368
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227368&action=edit
Patch

For example, Epiphany cannot connect to https://join.gov.tw/. It shows the
certificate error page. gnutls-cli also fails and shows these error messages:

|<1>| Got OCSP response with an unrelated certificate.
- Status: The certificate is NOT trusted. The received OCSP status response is
invalid. 
*** PKI verification of server certificate failed...
*** Fatal error: Error in the certificate.

It turns out it is a GnuTLS bug which has been fixed in the upstream. If I
apply the upstream patch, both Epiphany and gnutls-cli can connect to the site.

https://gitlab.com/gnutls/gnutls/-/issues/1062
https://gitlab.com/gnutls/gnutls/-/merge_requests/1308

-- 
You are receiving this mail because:
You are the assignee for the bug.