Thank you very much, this really works!

But I was troubled by new problems again. I tried to install the IntelĀ® SGX 
driver with ECDSA attestation enabled (ubuntu18.04-server, driver 1.36.2, sdk 
2.12.100.3) according to this link: 
https://download.01.org/intel-sgx/sgx-linux/2.12/docs/Intel_SGX_Installation_Guide_Linux_2.12_Open_Source.pdf.

Then I ran Teaclave in simulation mode. The strange thing is that my command is 
normal, but the following error appears when I run cargo test in sdk/rust/, and 
the log error is given later.
I believe there is a problem with authentication, but python can run but rust 
cannot be very puzzling.

```
running 6 tests
test tests::test_approve_task ... FAILED
test tests::test_assign_data ... FAILED
test tests::test_assign_data_err ... FAILED
test tests::test_frontend_service ... FAILED
test tests::test_frontend_service_with_request ... FAILED
test tests::test_authentication_service ... FAILED

failures:

---- tests::test_approve_task stdout ----
thread 'tests::test_approve_task' panicked at 'called `Result::unwrap()` on an 
`Err` value: Connection error: invalid certificate: ExtensionValueInvalid', 
src/lib.rs:686:63
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- tests::test_assign_data stdout ----
thread 'tests::test_assign_data' panicked at 'called `Result::unwrap()` on an 
`Err` value: Connection error: invalid certificate: ExtensionValueInvalid', 
src/lib.rs:613:63

---- tests::test_assign_data_err stdout ----
thread 'tests::test_assign_data_err' panicked at 'called `Result::unwrap()` on 
an `Err` value: Connection error: invalid certificate: ExtensionValueInvalid', 
src/lib.rs:649:63

---- tests::test_frontend_service stdout ----
thread 'tests::test_frontend_service' panicked at 'called `Result::unwrap()` on 
an `Err` value: Connection error: invalid certificate: ExtensionValueInvalid', 
src/lib.rs:529:63

---- tests::test_frontend_service_with_request stdout ----
thread 'tests::test_frontend_service_with_request' panicked at 'called 
`Result::unwrap()` on an `Err` value: Connection error: invalid certificate: 
ExtensionValueInvalid', src/lib.rs:571:63

---- tests::test_authentication_service stdout ----
thread 'tests::test_authentication_service' panicked at 'called 
`Result::unwrap()` on an `Err` value: Connection error: invalid certificate: 
ExtensionValueInvalid', src/lib.rs:517:51


failures:
    tests::test_approve_task
    tests::test_assign_data
    tests::test_assign_data_err
    tests::test_authentication_service
    tests::test_frontend_service
    tests::test_frontend_service_with_request

test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out
```

```
teaclave-authentication-service-sgx-sim-mode    | [2021-04-08T02:45:24Z ERROR 
rustls::session] TLS alert received: Message {
teaclave-authentication-service-sgx-sim-mode    |         typ: Alert,
teaclave-authentication-service-sgx-sim-mode    |         version: TLSv1_2,
teaclave-authentication-service-sgx-sim-mode    |         payload: Alert(
teaclave-authentication-service-sgx-sim-mode    |             
AlertMessagePayload {
teaclave-authentication-service-sgx-sim-mode    |                 level: Fatal,
teaclave-authentication-service-sgx-sim-mode    |                 description: 
BadCertificate,
teaclave-authentication-service-sgx-sim-mode    |             },
teaclave-authentication-service-sgx-sim-mode    |         ),
teaclave-authentication-service-sgx-sim-mode    |     }
teaclave-authentication-service-sgx-sim-mode    | [2021-04-08T02:45:24Z DEBUG 
teaclave_rpc::transport] Connection disconnected.
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/495#issuecomment-815409772

Reply via email to