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

Examples/tls-sp.rs not run #2

Open
lindrix opened this issue Mar 28, 2023 · 4 comments
Open

Examples/tls-sp.rs not run #2

lindrix opened this issue Mar 28, 2023 · 4 comments

Comments

@lindrix
Copy link

lindrix commented Mar 28, 2023

Hi. I got the rust-sgx-remote-attestation for test, and after i update their requirements and i set it, i try to run build.sh and run.sh scripts. After other errors, i obtain sucess in build it, but when i try to run it, occurs this:

Enclave panicked: Exited with status code 101

Captura de tela de 2023-03-28 16-41-53
How to resolve this?

Thank you for your attention.

@ndokmai
Copy link
Owner

ndokmai commented Mar 29, 2023

Hi,

I suspect this error is due to Intel Attestation Services deprecating the API version with which this code base is meant to interface. This will require changing the code to follow the new API version. See https://api.trustedservices.intel.com/documents/sgx-attestation-api-spec.pdf

I'm afraid I don't have time to make the change at the moment, but I'll revisit it in a couple of months.

@ndokmai
Copy link
Owner

ndokmai commented Mar 29, 2023

Alternatively, you could try a fork of this git: https://github.com/AuthenticExecution/rust-sgx-remote-attestation

The author seems to have updated the API to version 4.

@lindrix
Copy link
Author

lindrix commented Mar 29, 2023

I understand. I was thinking that would be this it too, about IAS revision.
I am going to try with th fork.
Thank you very much!

@lindrix
Copy link
Author

lindrix commented Mar 29, 2023

Hi, i got to fix the error and others.

First it need to update the Cargo.toml file, where sgx-isa version can be changed to 0.4 (in ra-client, ra-sp and ra-enclave), and after you change the ra-sp/src/ias.rs file,

where:

const SIG_RL_PATH: &str = "/attestation/v3/sigrl/";
const REPORT_PATH: &str = "/attestation/v3/report";

Would change to:

const SIG_RL_PATH: &str = "/attestation/v4/sigrl/";
const REPORT_PATH: &str = "/attestation/v4/report";

Using Rust toolchain nightly updated.

For end, update the EPID hashs in https://api.portal.trustedservices.intel.com/EPID-attestation and ra-sp/examples/data/settings.json.

Thank you for attention.

And in the moment the fork https://github.com/AuthenticExecution/rust-sgx-remote-attestation no work, where it finish at errors...

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

2 participants