Yes, I came up to the same conclusion too.
Could you delete the sshd-core/hostey.ser and try again please ?
I can't figure why BC would generate a modulus that would be rejected later
:-(


2018-06-01 9:44 GMT+02:00 Emmanuel Lécharny <elecha...@gmail.com>:

>
>
> Le 01/06/2018 à 09:10, Guillaume Nodet a écrit :
> > Cool, that gives a lot of information.  The problems seems to come from
> the
> > following exception:
> >  java.lang.IllegalArgumentException: RSA modulus has a small prime
> factor
> >
> > I'll investigate the possible causes.
>
> Looking at BC code at
> https://github.com/bcgit/bc-java/blob/master/core/src/
> main/java/org/bouncycastle/crypto/params/RSAKeyParameters.java,
> we see this exception being thrown:
>
>         // the value is the product of the 132 smallest primes from 3 to
> 751
>         if (!modulus.gcd(new
> BigInteger("145188775577763990151158743208307020242261438098488931355057
> 091965"
> +
>
> "931517706595657435907891265414916764399268423699130577757433083166" +
>
> "651158914570105971074227669275788291575622090199821297575654322355" +
>
> "049043101306108213104080801056529374892690144291505781966373045481" +
>             "8359472391642885328171302299245556663073719855")).equals(
> ONE))
>         {
>             throw new IllegalArgumentException("RSA modulus has a small
> prime factor");
>         }
>
> which means the provided modulus has a  common divisor with one of the
> lowest prime numbers (between 3 and 751).
>
>
> Clearly, the key is not good.
> --
> Emmanuel Lecharny
>
> Symas.com
> directory.apache.org
>
>


-- 
------------------------
Guillaume Nodet

Reply via email to