Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot sign with P256 self-signed key #10

Closed
brozkeff opened this issue Sep 22, 2023 · 3 comments
Closed

Cannot sign with P256 self-signed key #10

brozkeff opened this issue Sep 22, 2023 · 3 comments

Comments

@brozkeff
Copy link

I generated a nist p256 key and self signed certificate using openssl, however I cannot use it in simple signer due to error at the last step:

<class 'TypeError'>: _EllipticCurvePrivateKey.sign() takes 3 positional arguments but 4 were given

Using python 3.10, Linux Mint 21 based on Ubuntu 22.04

The same certificate can be used in Thunderbird or Firefox NSS and then used in LibreOffice to sign ODT or PDF exported from Libreoffice.

When I created a certificate based on RSA2048 using Actalis it is able to perform the signing without error.

@schorschii
Copy link
Owner

This issue needs to be fixed in the endesive library. I created a pull request m32/endesive#158.

@schorschii
Copy link
Owner

The PR is merged into endesive and I released a new Simple Signer version. I'd appreciate your feedback.

@schorschii
Copy link
Owner

Please note that other programs such as Okular also have problems verifying EC key signatures. But Adobe Acrobat Reader for example can verify EC signatures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants