Skip to content

Attributes START_DATE and END_DATE are not ciphered in a private key #655

Open

Description

@antoinelochet

Hello,

While developing a product for which we have to support multiple HSM, we encountered a problem in SoftHSM with the START_DATE and END_DATE attrtibutes for private keys.
It is a case that is supported by the spec but from what I understand, SoftHSM expects that START_DATE and END_DATE are only set for public keys.
When set on private keys and reloading the private key and reading the _DATE attributes, it tries to decrypt them but fails in IV reading since they are not encrypted to begin with.

Activity

  1. antoinelochet commented on Jan 11, 2022

    @antoinelochet
    ContributorAuthor

    I just pushed an pull request here: #665
    Any comment is very welcome :)

  2. added this to the 2.8.0 milestone on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions