github / smimesign

An S/MIME signing utility for use with Git
MIT License
587 stars 135 forks source link

failed to sign message: NCryptSignHash returned 80090022 ... #116

Closed jspraul closed 2 years ago

jspraul commented 2 years ago

Command: echo test test test | smimesign -bsau [email] Error: failed to sign message: NCryptSignHash returned 80090022 during signing: The operation completed successfully. Platform: Windows 10 + smart card Number of certificates matching given [email]: 2 Number of certificates from the smart card shown by --list-keys: 4 user.signingkey configured: yes

Error code details per random search: 0x80090022 (2146893790) NTE_SILENT_CONTEXT: Provider could not perform the action since the context was acquired as silent.

Perhaps it is unable to prompt for the PIN?

I have verified the smart card is usable for other purposes, such as a client certificate (successfully prompted for PIN) in multiple browsers.