Skip to content
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

How to extract enclave idendity from the RA-TLS certificate #1069

Open
szymek156 opened this issue Nov 29, 2024 · 0 comments
Open

How to extract enclave idendity from the RA-TLS certificate #1069

szymek156 opened this issue Nov 29, 2024 · 0 comments

Comments

@szymek156
Copy link

Following the https://github.com/intel/linux-sgx/blob/7385e10ce1106215d15f874a024ca224c7417eea/SampleCode/SampleAttestedTLS/AttestedTLSREADME.md

Custom extended certificate validation:
1.    Validate certificate
2.    Validate the evidence
3.    Validate peer enclave's identity
        Validate the enclave’s identity (e.g., MRENCLAVE in SGX) against the expected list. This check ensures only the intended party is allowed to connect to.

tee_verify_ceritificate_with_evidence() for inside enclave calls, was added to perform step 1-2 and leaving step 3 to application for business logic.

How to perform step 3? Is there any SDK that will make my live easier and extract quote report from the TLS certificate? Or am I forced to do it on my own, finding the extension in the TLS, decoding CBOR etc?
I was expecting to find a function similar to: get_report(ra_tls_certificate) -> sgx_report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant