Replies: 1 comment 1 reply
-
|
You have a public key here, you can only verify signatures with a public key, not apply signatures, to apply a signature you need a private key. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm guessing this is something I'm doing wrong, but I can't figure out what it is. I'm trying to use an AWS KMS generated public key to sign a JWS, but I keep getting
TypeError: object of type 'NoneType' has no len()when calling theadd_signaturemethod. I'm hoping someone can help me understand where I'm going wrong.I create the KMS key using the
create_keyboto3 client method as follows:When I later retrieve that key to sign the JWS, I do so as follows:
So far, so good. I have a valid JWS, successfully load the JWK from the pem file and everything looks as I expect. Unfortunately, the next step is where things break
The call stack is shown below:
Somehow there's a
dvalue expected, but I don't know where that might come from. What am I missing here? Thanks in advance for your help.Beta Was this translation helpful? Give feedback.
All reactions