Le 01/06/2018 à 11:29, Guillaume Nodet a écrit : > Yes, I came up to the same conclusion too. > Could you delete the sshd-core/hostey.ser and try again please ?
Much better once the hostkey.ser is deleted... INFO] Results: [INFO] [ERROR] Failures: [ERROR] WindowAdjustTest.testTrafficHeavyLoad:120->Assert.assertFalse:64->Assert.assertTrue:41->Assert.fail:88 Timeout while waiting for channel closure [INFO] [ERROR] Tests run: 187, Failures: 1, Errors: 0, Skipped: 4 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Mina SSHD ................................... SUCCESS [ 5.721 s] [INFO] Apache Mina SSHD :: Core ........................... SUCCESS [05:46 min] [INFO] Apache Mina SSHD :: Mina ........................... SUCCESS [01:59 min] [INFO] Apache Mina SSHD :: Netty .......................... FAILURE [04:24 min] > 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 <[email protected]>: > >> >> >> 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 >> >> > > -- Emmanuel Lecharny Symas.com directory.apache.org
pEpkey.asc
Description: application/pgp-keys
