-
This might not be gramine related. We are trying to verify that the MRSIGNER field are originating from our enclave-signer.pem generated with gramine-sgx-gen-private-key In a shell i've tried this: And then compared it to the MRSIGNER field output from gramine-sgx-quote-dump They are not matching, so I must be doing something wrong? The enclave-key.pem was used together with gramine-sgx-sign.. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
First of all, Second of all, your file is You can check more about MRSIGNER in Intel SDM, Vol. 3, Chapter 35.4.1.2. |
Beta Was this translation helpful? Give feedback.
-
So this is what we've done so far:
But still it does not match ? |
Beta Was this translation helpful? Give feedback.
-
@nmwael This was indeed pretty hard. I spent an hour figuring this out, and here's the final command:
So what happens here is:
Done! The resulting value is the same as MRSIGNER (in my experiments). |
Beta Was this translation helpful? Give feedback.
@nmwael This was indeed pretty hard. I spent an hour figuring this out, and here's the final command:
So what happens here is:
Modulus=F290...
, so we remove theModulus=
prefix usingcut
.fold | tac
, which swaps the bytes in hex representation.tr
.