Skip to content

Commit

Permalink
Fixed #905
Browse files Browse the repository at this point in the history
Fix SFTP issue with diff key size
  • Loading branch information
gwilmer committed Mar 1, 2019
1 parent 356720d commit 5d60398
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*/
package org.jumpmind.metl.core.runtime.resource;

import java.security.Security;

import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.jumpmind.properties.TypedProperties;

public class Sftp extends AbstractResourceRuntime {
Expand Down Expand Up @@ -48,6 +51,8 @@ public class Sftp extends AbstractResourceRuntime {

@Override
protected void start(TypedProperties properties) {
Security.insertProviderAt(new BouncyCastleProvider(), 1);
log.info("Using BouncyCastleProvider");
streamableResource = new SftpDirectory(resource,
properties.getProperty(SFTP_SERVER),
properties.getInt(SFTP_PORT),
Expand Down

0 comments on commit 5d60398

Please sign in to comment.