Skip to content

Tests failing with CloudHSM (Client V5) #95

Description

@chaddaksha

Hi,

I'm trying to use crypto11 with AWS CloudHSM. To start, I'm just trying to run the tests in this repo, but facing the following errors:

=== RUN   TestSymmetricRequiredArgs
    require.go:794: 
                Error Trace:    symmetric_test.go:323
                Error:          Received unexpected error:
                                pkcs11: 0x190: CKR_CRYPTOKI_NOT_INITIALIZED
                                failed to list PKCS#11 slots
                Test:           TestSymmetricRequiredArgs
--- FAIL: TestSymmetricRequiredArgs (0.00s)

Looking at the CloudHSM logs, I see something like the following with a login issue:

... Failed to login to HSM ... User is already logged in

Is there any way to work around this?

Thanks,
Chad

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