Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Signing error: CryptoServerError: Cannot get PKCS11 EC mechanism by name 'ECDSA_SHA384' #497

@roschnor

Description

@roschnor

Using CMS-Demo from https://fortifyapp.com/examples/signing/

and Just Changed

await signedData.sign(privateKey, 0, "SHA-384");

The error comes from node-webcrypto-p11

but I thought it should work due to https://github.com/PeculiarVentures/node-webcrypto-p11/blob/master/src/utils.ts#L136

Okay, I found algName in Array is only "ECDSA", but mechanism.name === p11AlgorithmName is never true than.

Another Question: Is it possible to use signing without hashing? Hashed already by SHA-384 ? Maybe the error is gone then also.

Metadata

Metadata

Assignees

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