Skip to content

[BUG] Can't export CA keys after chaning keyEncryptKey from EC to RSA #1034

@mwllgr

Description

@mwllgr

Describe the Bug

I'm trying to export a secp384r1 CA key which has an RSA-4096 keyEncryptionKey set.
Upon entering the SoftToken password in the "CA export requires the token authentication code" field, I only get the following error:

org.bouncycastle.operator.OperatorCreationException: cannot create signer: can't identify EC private key.

To Reproduce

Steps to reproduce the behavior:

  1. Create secp384r1 CA with RSA-4096 KEK
  2. Try to export the keys

Expected Behavior

I should get the .p12 file with private key.

Screenshots and Logs

Log export: https://p.kll.li/?7c9917406abc71ee#GDW2VT5TPhvMDeU1P5vngBASKhuwxoeQ3H87ogiri2Lb
(Docker container)

Product Deployment

Please complete the following information:

  • Deployment format: Docker
  • Version 9.3.7 Community

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions