Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11302

Improve Logging for SSLHostnameVerifier

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      SSLHostnameVerifier interface/class was copied from other projects without any logging to help troubleshooting SSL certificate related issues. For a misconfigured SSL truststore, we may get some very confusing error message like

      >hdfs dfs -cat swebhdfs://NNl/tmp/test1.txt
      ...
      cause:java.io.IOException: DN2:50475: HTTPS hostname wrong:  should be <DN2>
      cat: DN2:50475: HTTPS hostname wrong:  should be <DN2>
      

      This ticket is opened to add tracing to give more useful context information around SSL certificate verification failures inside the following code.

      AbstractVerifier#check(String[] host, X509Certificate cert) 

        Attachments

          Activity

            People

            • Assignee:
              vagarychen Chen Liang
              Reporter:
              xyao Xiaoyu Yao
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: