SSL/TLS handshake failure in CI-Example (ra-tls-mbedtls) #1284
Replies: 3 comments 5 replies
-
Is something wrong with |
Beta Was this translation helpful? Give feedback.
-
That's weird. I'm not sure what happens, because you seem to be using the same version of Gramine for both server and client, and the error you see seems to indicate the mismatch in versions... If you want to look at the nitty-gritty details, check the code:
The best way forward for you would be to start the server and the client in two terminals (so that their outputs are not intermingled) and run the commands again, and carefully observe what the server and the client print out. Ideally also add the I don't think this problem has anything to do with the |
Beta Was this translation helpful? Give feedback.
-
Thanks, dimakuv! Based on your recommendations, I did the following:
make clean && DEBUG=1 make app client dcap RA_TYPE=dcap && gramine-sgx ./server
RA_TLS_ALLOW_DEBUG_ENCLAVE_INSECURE=1 RA_TLS_ALLOW_OUTDATED_TCB_INSECURE=1 RA_TLS_MRSIGNER=5d99138bf73a9adea36ee583ae2b5e27d8076a854e4923824a91067f45aacc8f RA_TLS_MRENCLAVE=1f119dcea98f4365f3985911bbc02135b3f1929667f3d26a272d563429aacea2 RA_TLS_ISV_PROD_ID=0 RA_TLS_ISV_SVN=0 ./client dcap The SGX trace doesn't look super informative to me, but I attached it, anyways: sgx-trace.txt The message on the client side changed slightly, even though I made no changes to the program:
Tracing that error number in the code, I see it could either occur because |
Beta Was this translation helpful? Give feedback.
-
I am trying to run the example in
gramine/CI-Examples/ra-tls-mbedtls
.Per the README, I ran the following:
make clean make app dcap RA_TYPE=dcap gramine-sgx ./server & /usr/local/bin/gramine-sgx-sigstruct-view server.sig
Based on the output of the sigstruct, I ran the following:
However, I get the following error:
I see that
err_loc=2
means quote verification failed and that-0x2500
means that the x.509 certificate had an invalid extension, but I'm unsure how to debug further from here. The Gramine version was pulled from GitHub and built this morning, and I am running on Ubuntu 20.04.Any help would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions