Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-326

A KeyManager is required when the protection level is set to 'P' with FTPSClient on active mode

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 3.0
    • FTP
    • None
    • Windows XP profesional service pack 2, Java Java 1.6.0_12-b04

    Description

      Using a simple FTPS client that list a directory, when execPROT("P") is set and the active mode is on, the following exception is thrown :

      javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled.
      at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.checkEnabledSuites(SSLServerSocketImpl.java:303)
      at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:253)
      at org.apache.commons.net.ftp.FTPClient.openDataConnection(FTPClient.java:489)
      at org.apache.commons.net.ftp.FTPSClient.openDataConnection(FTPSClient.java:494)
      at org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:1950)
      at org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:1996)
      at fr.enovacom.eai.actions.dynamiques.protocole.ftp.FTPGet.testFTPS(FTPGet.java:379)
      at fr.enovacom.eai.actions.dynamiques.protocole.ftp.FTPGet.main(FTPGet.java:401)

      This doesn't occur on passive mode.
      The only way to make it work is to set a keyManager although there is no need for a client authentication.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            tdudouit Terence Dudouit
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment