-
Notifications
You must be signed in to change notification settings - Fork 25
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
VCEK contains trailerField for RSASSA-PSS-param and (potentially) violates rfc4055 #57
Comments
I've not yet identified at which layer these NULL values are inserted. Is it possible that the source VCEK file contains these ? |
Section 3.2 is the correct part isn't it?
|
@sarutak Oh. That's a very good point. Re-reading RFC I noticed that we should probably apply the spec for hash function here, instead, https://datatracker.ietf.org/doc/html/rfc5758#section-2 and this states ;
This makes me feel that this is a bug in cryptography side... Let me open an issue for the library and here their thoughts... |
After further investigation I'm concluding this is a regression in cryptography... I'm closing this issue now and track down the problem in pyca/cryptography#11037 . |
Reopening this issue because we have identified the field which is causing the problem (I've corrected the descriptions). Although the description in RFC is not very clear enough, I'm wondering if we can hear some thoughts here. |
@kajinamit AMD maintains the VCEK certificates in their Key Distribution Server (KDS). With that said, it seems that this is an issue with the VCEK certificates maintained on the KDS, rather than the |
@tylerfanelli We checked the VCEK file downloaded from https://kdsintf.amd.com directly and confirmed the file contains the trailerField field, too. So the issue is not in snpguest(or snphost) but in the content maintained by AMD, I think. I wonder if anyone knows any good contact to ask AMD to check the VCEK content by their end. I checked a few sites but failed to find the one which looks appropriate. |
@larrydewey Would you be able to help here? |
Another thing I noticed is that VCEK does not contain the extensions such as Authority Key Identifier and Subject Key Identifier. This is causing problems with libraries (like cryptography) which strictly require compliance with RFC 5280 . https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.1 |
|
@kajinamit a patch was just released to the KDS system which should mitigate this issue. Can you try to re-pull the certificate and let me know if it comes back correctly, now? |
Hi @larrydewey . Thanks for the update ! Sorry for my delayed response. I took some days off. I confirmed the trailerField field has been removed. However the latest VCEK still lacks the required extension fields such as Authority Key Identifier and Subject Key Identifier in its X509v3 extensions.
I see ask contains these fields.
|
@larrydewey By any chance could you check my previous comment ? |
Problem statement
It seems the VCEK file obtained by
snpguest fetch
command is not compliant with RFC. The violation prevents some libraries such as cryptography in python from loading the file.Steps to reproduce
Expected result
The certificate can be loaded without any error
Actual result
The certificate can't be loaded. The crypography library contains the following error.
Environment
Additional information
According to RFC 4055, https://datatracker.ietf.org/doc/html/rfc4055#section-3.1 , it is stated that the trailerField shouldbe omitted by the implementations that perform signature generation.
but the field is present in the certificate downloaded.
Although the description in RFC is quite confusing, I suspect that the trailerField should be omitted in VCEK.
pyca/cryptography#11037 contains the relevant discussion.
(note: Title is incorrect but it's about the same topic)
The text was updated successfully, but these errors were encountered: