RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1897454 - SSLPeerUnverifiedException with LDAP+StartTLS on OpenJDK 1.8.0_272
Summary: SSLPeerUnverifiedException with LDAP+StartTLS on OpenJDK 1.8.0_272
Keywords:
Status: CLOSED DUPLICATE of bug 1895062
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: java-1.8.0-openjdk
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andrew John Hughes
QA Contact: OpenJDK QA
URL:
Whiteboard:
Depends On: 1895067 1897452
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-13 06:03 UTC by Hisanobu Okuda
Modified: 2024-03-25 17:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1897452
Environment:
Last Closed: 2022-07-14 01:13:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hisanobu Okuda 2020-11-13 06:03:52 UTC
+++ This bug was initially created as a clone of Bug #1897452 +++

Description of problem:
I updated OpenJDK from java-1.8.0-openjdk-1.8.0.265.b01-4.el8.x86_64 to java-1.8.0-openjdk-1.8.0.272.b10-3.el8_3.x86_64. Then my LDAP JNDI client code trhows the following exception:

{code}
javax.net.ssl|ALL|01|main|2020-11-13 13:00:19.543 JST|Logger.java:765|Invalidated session:  Session(1605240019463|TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256)
javax.net.ssl.SSLPeerUnverifiedException: hostname of the server '' does not match the hostname in the server's certificate.
        at com.sun.jndi.ldap.ext.StartTlsResponseImpl.verify(StartTlsResponseImpl.java:447)
        at com.sun.jndi.ldap.ext.StartTlsResponseImpl.negotiate(StartTlsResponseImpl.java:225)
        at com.sun.jndi.ldap.ext.StartTlsResponseImpl.negotiate(StartTlsResponseImpl.java:170)
        at sample.LdapClientStartTLS.search(LdapClientStartTLS.java:38)
        at sample.LdapClientStartTLS.main(LdapClientStartTLS.java:24)
Caused by: java.security.cert.CertificateException: Illegal given domain name: 
        at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:207)
        at sun.security.util.HostnameChecker.match(HostnameChecker.java:102)
        at sun.security.util.HostnameChecker.match(HostnameChecker.java:108)
        at com.sun.jndi.ldap.ext.StartTlsResponseImpl.verify(StartTlsResponseImpl.java:426)
        ... 4 more
Caused by: java.lang.IllegalArgumentException: Server name value of host_name cannot be empty
        at javax.net.ssl.SNIHostName.checkHostName(SNIHostName.java:314)
        at javax.net.ssl.SNIHostName.<init>(SNIHostName.java:108)
        at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:205)
        ... 7 more
{code}

The same issue is reported in https://bugs.openjdk.java.net/browse/JDK-8214440, and the fix is provided in https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/10149d2837c2.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Andrew John Hughes 2022-07-14 01:13:59 UTC

*** This bug has been marked as a duplicate of bug 1895067 ***

Comment 5 Andrew John Hughes 2022-07-14 01:16:32 UTC

*** This bug has been marked as a duplicate of bug 1895062 ***


Note You need to log in before you can comment on or make changes to this bug.