-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unsupported signature algorithm. #15
Comments
Development has halted, but not permanently. I'm hoping my employer's priorities allow me to continue development on this for our business use-case some time this summer, but I'm not sure exactly when I can get back to it. That signature algorithm should be supported by PKI.js, so I'm not sure what you're encountering and why. If you can provide test file(s) and a code sample, I can try to reproduce your issue in the next 3 to 10 days (I'm very busy lately, we'll see when I can fit it in). If I can reproduce the issue and it's not user-error or an error in PKI.js, I can try to fix and roll-up that change with any dependency updates. Regardless of the outcome, I'll get to updating dependencies in the next 2 or 3 weeks. |
@juhojo And thanks for the feedback, glad you're liking this so far. |
Nice to hear that! 😄 The error is thrown really early:
If the |
@juhojo Thanks for the code sample. May I also have a sample of a throw-away private key/public cert that you know gets you the same error? Or do you have an openssl command I can use to produce my own so I know I'm using the same options? Additionally, you should know that MD5 and SHA-1 are required by a LOT of businesses out there for legacy reasons. I even had to go out of my way to support DES3 😮 so we could interoperate with a popular e-commerce marketplace. Should PKI.js ever drop support for MD5/SHA-1, I'll probably have to fix that, too, given that legacy systems often don't (or refuse) to support more modern and secure algorithms. |
The cert and key are the |
The node version I am using is 14.15.4 and npm is 7.6. OS Windows 10 Pro (which could possibly have an effect). Edit: I did create (with OpenSSL) my own key and cert but that had no effect. Additionally, |
Hi, I found out that the reason was the specific version of the @peculiar/webcrypto (and PKI.js?). I solved these on my own project, which uses the npm-package of this repo, with I did track the issues origin and it seems to be from |
@aaronhuggins @ahuggins-nhs any chance of this project continuing? |
For those wondering what was the hack in all its lameness, here is a short snippet of the resolutions I used.
"resolutions": {
"**/@peculiar/webcrypto": "1.1.3",
"**/asn1js": "2.0.26",
"**/nodemailer": "6.4.11",
"**/pkijs": "2.1.90"
} These were identical to the |
I want to ask how this problem is solved. |
I didn't have success getting the signing working when bumping versions. Instead, the linked PR seems OK. I don't know if it's correct or safe. |
There are some insecure packages (according to npm v7 audit) and the signatures do not appear to work:
Unsupported signature algorithm: RSAES-PKCS1-v1_5
.Has the development of this repository been halted permanently?
I am liking this project and that is why I ask 👍 .
The text was updated successfully, but these errors were encountered: