Skip to content

java.security.InvalidAlgorithmParameterException: only SM2ParameterSpec supported #2177

@TutuTang

Description

@TutuTang

SM2ParameterSpec parameterSpec = new SM2ParameterSpec(userId); Signature signer = Signature.getInstance("SM3withSM2", "BC"); signer.setParameter(parameterSpec);
An error is reported when the Spring Framework is upgraded from 5.x to 6.0
"java.security.InvalidAlgorithmParameterException: only SM2ParameterSpec supported"

The local ut is normal, but the deployment to the online environment is abnormal.

Can this information help analyze the root cause?

Metadata

Metadata

Assignees

No one assigned

    Labels

    support requestCommunity assistance requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions