-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support for pkcs12 certificates with aes256cbc as pbe algorithm #1087
Comments
Thank you for opening your first issue and for being a part of the open signing revolution! |
I was also getting this error and was able to work around it by creating my p12 with the -legacy option
|
@underscoredje did you follow this https://github.com/documenso/documenso/blob/main/SIGNING.md while arriving at this error? |
@ElTimuro : Yes, I use this command.
|
|
Yes, |
Issue Description
New systems with opensslv3 seems to use the following algorithm to generate pkcs12 certificates:
When using these certificates to sign documents, it raises the error
Error: Failed to get private key bags
.My tests show the issue comes from the pbe aes256cbc alogrithm
Steps to Reproduce
Generate a pkcs12 certificate file with aes-256-cbc.
It should be the default setting with opensslv3
Otherwise we can generate it with the following command:
openssl pkcs12 -export -out cert-aes256cbc.p12 -inkey private.key -in certificate.crt -keypbe aes-256-cbc -certpbe aes-256-cbc
Then use it with documenso to sign documents
Expected Behavior
Current Behavior
Screenshots (optional)
No response
Operating System [e.g., Windows 10]
docker
Browser [e.g., Chrome, Firefox]
No response
Version [e.g., 2.0.1]
1.5.3 and 1.5.4-rc.3
Please check the boxes that apply to this issue report.
The text was updated successfully, but these errors were encountered: