Allow other signatures to use rsa variants
@@ -192,7 +192,6 @@ public class DHGClient extends AbstractDHClientKeyExchange {
String keyAlg = KeyUtils.getKeyType(signatureKey);
String keyId = openSshKey.getId();
- if (KeyPairProvider.SSH_RSA_CERT.equals(openSshKey.getKeyType())) {
// allow sha2 signatures for legacy reasons
String variant = openSshKey.getSignatureAlg();
if ((!GenericUtils.isEmpty(variant))
@@ -207,7 +206,6 @@ public class DHGClient extends AbstractDHClientKeyExchange {
SshConstants.SSH2_DISCONNECT_KEY_EXCHANGE_FAILED,
"Found invalid signature alg " + variant + " for key ID=" + keyId);
}
- }
Signature verif = ValidateUtils.checkNotNull(
NamedFactory.create(session.getSignatureFactories(), keyAlg),
