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

Improve Logging for SSLHostnameVerifier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha4
    • security
    • None
    • 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

        1. HDFS-11302.001.patch
          3 kB
          Chen Liang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: