Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidKeyException: Modulus size must

user8688379Oct 13 2016 — edited Dec 1 2016

When I have upgraded  the JDK version 1.7.0_111.  facing  that issue during when the ftp server pushed the file to concerned receiver

.When I have used the JVM 1.7.0_99 it is working fine as per expected behavior.

Comments

3152490

I solved the issue by adding the BouncyCastleProvider til the java-security:

import org.bouncycastle.jce.provider.BouncyCastleProvider;

...

Security.addProvider(new BouncyCastleProvider());

...

from the newest bcprov (currently this one bcprov-jdk15on-155.jar)

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 29 2016
Added on Oct 13 2016
1 comment
2,764 views