-
Notifications
You must be signed in to change notification settings - Fork 3
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
Get the keyid ? and ecdsa-with-SHA256? #1
Comments
Hi, |
Thank's that worked. |
Well, my understandig is that the algorithm above or used for the key in the code did use ECDS with prime2561. |
but there is some issue: Could not deserialize key data. The data may be in an " keyid = '30593013' pem = b'-----BEGIN EC PRIVATE KEY-----\n' |
Seems you are missing / at end of these lines (refer to my key in the code). Or you put all together in one single long line string between b'......' |
sorry, that's not working :( the same error pem = b'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETHfi8foQF4UtSNVxSFxeu7W+gMxdSGElhdo7825SD3Lyb+Sqh4G6Kra0ro1BdrM6Qx+hsUx4Qwdby7QY0pzxyA==/' |
You are now missing begin and end of certificate statements. Do do it exactly the way as in my example and it should work. Don't forget the / after each line.... |
And after /n' |
I got the same error: pem = b'-----BEGIN EC PRIVATE KEY-----\n' it's the same code from you. |
Ok. Same error with your key. Actually it seems a bit short. Are you sure you did not miss a part? |
Make use you specifyc the curve (https://github.com/ehn-dcc-development/ehn-sign-verify-python-trivial/blob/aac51a6df51cdc8d3a06f1e3ab099dc6c35e3f1c/gen-csca-dsc.sh#L9 -- the -name flag). And make sure that the key is uncompressed. Check this with openssl x509 -in dsc.key -noout -pubkey | openssl pkey -pubin -noout -text and verify that the hex string starts with 04: and is followed by exactly 2x32 = 64 hex pairs. The code from this line https://github.com/ehn-dcc-development/ehn-sign-verify-python-trivial/blob/aac51a6df51cdc8d3a06f1e3ab099dc6c35e3f1c/hc1_verify.py#L186 shows how to do this in Python |
HI I need help File "C:\Python39\lib\site-packages\cose\headers.py", line 173, in is_bstr i |
i fixed it :) |
Great that you could directly fix it :-) |
I just want to ask here, whether someone find a solution to this comment: |
Replace |
Good morning, first of all, thank you for leaving this material and that we can learn everything, I have been trying it and it gives me a series of errors, I am new and I would like to continue learning. the errors are these: line 41, in init line 84, in init line 53, in init line 166, in _transform_header_buckets line 173, in is_bstr Thank u, very much!! |
You'll have to provide more information; exactly what are you running; with that inputs, what arguments, etc, etc.
|
I have already followed all the same code and it only gives me this error: line 125, in |
Sorry - but you'll have to provide a lot more information if we want to track down what is wrong.
Exactly what command are you running; with exactly what input data ? Exactly what environment (os, python version, versions of the libraries used), steps to reproduce, expected result, actual result, logs/proofs/screenshots etc.
As right now there is too little to go on. Just google for 'how to write a good bug report' to get an idea.
|
I have modified hc1_test_cert is written in three versions, they work well,
gp_cert1 for vaccine, gp_rec1 for hospitalized, a gp_tamp1 for antigenic
test , I hope they can be useful.
Il sab 8 gen 2022, 20:21 Newpython22 ***@***.***> ha scritto:
… [image: Sin título21]
<https://user-images.githubusercontent.com/97358530/148656929-8d5e0021-4243-4f12-8ca7-eb2dee0eae0b.jpg>
Using the same code from the beginning, with the required libraries,
changing the "keyid" it generates the code in base45 that is not the same
as what it should generate, regardless of whether or not it generates the qr
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJL6ZSF4R6KNZV37EHKLBNDUVCFDDANCNFSM475HFPQA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@Newpython22 Did you install this qrcode package: https://pypi.org/project/qrcode/ ? |
already solved!!
|
Where are those versions published? |
Hello,
how can i create the keyid for the certificate and get an SHA256 Key?
thank you very much
developer2013
The text was updated successfully, but these errors were encountered: