We are trying to put and get files from an SFTP server from webMethods IS 6.1 (jvm 1.4.2). Other posts point to the OpenSSH package. We have used OpenSSH and are able to put (upload) files to an SFTP server (first storing the files locally on disc).
Problem is that before getting files we want to do a list command, get an array of filenames to loop through before deciding what files to get (download). Since OpenSSH only supports shell script commands, we have found no easy way of solving this. We have also tried to use the Apache SSH package, but the problem here is that wM uses another java security provider. Is there any way of configuring wM what java security provider to load?
Has someone found a way of sucessfully using an SFTP client together with webMethods?
We have already tried JScape Secure FTP Factory. It leads us to the same error as with Apache - namely that webMethods IS uses another java security provider. So if the java security provider could be configured in WM our problem would be solved… Any inputs?
Java security providers are not configured in webMethods, but in the JRE itself. webMethods uses Entrust as its primary security provider. What providers do the ApacheSSH or JScape SSH use? Just follow the directions for that provider to configure the JRE to use it. I have configured the JRE in IS to use Bouncy Castle in the past for some XML encryption and digital signature tasks.
Thank you! We have now set the correct security provider (security.provider.1=com.sun.crypto.provider.SunJCE) first in the configuration list in the file java.security under jre\lib\security. This solved our problem.