Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16007

Red Hat Fuse - JSCH compatibility with ED25519 private key

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Major
    • fuse-7.10-GA
    • fuse-7.8-GA
    • Camel
    • False
    • False
    • % %
    • ?
    • Undefined

    Description

      • A customer has a requirement where he needs to connect to a sFTP server with an ED25519 private key.
      • Manually connecting to the machine with the ed25519 key is possible.
      • Adding a ed25519 as private key file it will throw an exception that it is not a supported type.
      • Is there any way to make use of a ed25519 key when using the camel sftp component?
      • Caused by: com.jcraft.jsch.JSchException: invalid privatekey: [B@3a25a6b6
      • Stacktrace
        org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://hostname:22
         at org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:146) [camel-ftp-2.17.0.redhat-630187.jar:2.17.0.redhat-630187]
        .....
        Caused by: com.jcraft.jsch.JSchException: invalid privatekey: [B@3a25a6b6
         at com.jcraft.jsch.KeyPair.load(KeyPair.java:664) [jsch-0.1.53.jar:]
         at com.jcraft.jsch.KeyPair.load(KeyPair.java:561) [jsch-0.1.53.jar:]
         at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40) [jsch-0.1.53.jar:]
         at com.jcraft.jsch.JSch.addIdentity(JSch.java:407) [jsch-0.1.53.jar:]
         at com.jcraft.jsch.JSch.addIdentity(JSch.java:367) [jsch-0.1.53.jar:]
         at org.apache.camel.component.file.remote.SftpOperations.createSession(SftpOperations.java:206) [camel-ftp-2.17.0.redhat-630187.jar:2.17.0.redhat-630187]
         at org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:115) [camel-ftp-2.17.0.redhat-630187.jar:2.17.0.redhat-630187]

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: