-
Notifications
You must be signed in to change notification settings - Fork 13
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
SubtleCrypto fails to recognise some CryptoKey
s
#55
Comments
Sometimes I've got the similar problem with One more thought, maybe it's possible to fix the problem by moving |
It's interesting. You've got I bet the problem is in module duplicates |
Hi @microshine! Thanks for looking into this. What should I try setting I tried adding
I don't know why I'm hitting this issue, having seen the |
Please look at your it uses 2 copies of https://github.com/relaycorp/relaynet-internet-gateway/blob/master/package-lock.json#L1747 |
To try to work around PeculiarVentures/webcrypto-core#55
Thanks @microshine! I've now added Note that
|
The following is failing for me:
webcrypto-core/src/subtle.ts
Lines 244 to 248 in 22c0f0b
But it shouldn't be (according to my debugger):
I think the issue is analogous to PeculiarVentures/asn1-schema#71. Here some info on the dependency tree:
The
CryptoKeyPair
is generated inside@relaycorp/relaynet-core
, using@peculiar/webcrypto
, and the resulting key pair is then passed to the root package (relaynet-internet-gateway
). Then the root package tries to use that key pair to issue a self-signed certificate using@relaycorp/relaynet-core
(which in turn uses PKI.js), but it fails with the error above.Note that I tried skipping the
key instanceof CryptoKey
check above, but hit a new error from@peculiar/webcrypto
:The text was updated successfully, but these errors were encountered: