Skip to content

CRL check fails if the issuing CA uses EC key pair #275

Closed
@tsaarni

Description

@tsaarni

The CRL file may be issued by a CA that uses EC key pair. Validating peer certificates (of any key type) against CRL from this kind of CA currently fails.

The problem is that jruby-openssl currently cannot verify the CRL file if it is signed with EC public key. The execution will end up in the default branch here, which fails when the key type is not RSA

else {
BigInteger mod = ((RSAPublicKey) publicKey).getModulus();
BigInteger exp = ((RSAPublicKey) publicKey).getPublicExponent();
AsymmetricKeyParameter rsaKey = new RSAKeyParameters(false, mod, exp);
verifierProvider = new BcRSAContentVerifierProviderBuilder(digestAlgFinder).build(rsaKey);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions