You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by czzmmc <no...@github.com> on 2020/04/07 02:31:41 UTC

[apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Hi,
I am trying to accomplish https request using rust sgx sdk.  I use MacBook with baidu lab docker as my develop tool. And I got "**thread panicked while processing panic. aborting.Illegal instruction**" when sending request to my https sever which written by python3. And I also want to use my own certifications created by openssl by myself. If there is any instructions, that would be nice.

-- 
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-sgx-sdk/issues/219

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by czzmmc <no...@github.com>.
@dingelish Hi, I found the cure. I was using baiduxlab/sgx-rust:latest docker, which is an old version. I switched to baiduxlab/sgx-rust:1804-1.1.1, and then it works. I run the https sample code successfully!

-- 
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-sgx-sdk/issues/219#issuecomment-611392479

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by Yu Ding <no...@github.com>.
how about this: you create a repo with the https server and it's ca/cert/private key, and then let me create a corresponding https client and create a PR?

-- 
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-sgx-sdk/issues/219#issuecomment-610157353

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by czzmmc <no...@github.com>.
@dingelish I updated the all cert files. Please update, too.

-- 
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-sgx-sdk/issues/219#issuecomment-611303374

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by czzmmc <no...@github.com>.
@dingelish Hi, I created a repo with my https server. 
https://github.com/czzmmc/rust_sgx_https_req
It's so nice of you.

-- 
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-sgx-sdk/issues/219#issuecomment-610188701

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by czzmmc <no...@github.com>.
@dingelish Sounds great! Please open the issue feature of your fork repo. I'll leave my comment there.

-- 
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-sgx-sdk/issues/219#issuecomment-611353044

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by Yu Ding <no...@github.com>.
that's really good news!

-- 
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-sgx-sdk/issues/219#issuecomment-611674068

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by Yu Ding <no...@github.com>.
what's the password of server cert?

-- 
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-sgx-sdk/issues/219#issuecomment-611218088

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by Yu Ding <no...@github.com>.
i don't think it's a problem of any rust codes. your server pem does not contain `Subject Alternative Name` and DNS name verifier cannot let it go. since this is related to this sdk, let's move to my fork and create a issue to discuss. thanks

https://github.com/dingelish/rust_sgx_https_req

-- 
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-sgx-sdk/issues/219#issuecomment-611327811

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by czzmmc <no...@github.com>.
@dingelish Sony to forget about that.  The pwd for server crt and client is 123456. And other info you might use is like below.
Country Name (2 letter code) []:CN
State or Province Name (full name) []:BJ
Locality Name (eg, city) []:BJ
Organization Name (eg, company) []:My Client / My Server / My CA (depending on different cert)
Organizational Unit Name (eg, section) []:
Common Name (eg, fully qualified host name) []:localhost
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:123456

-- 
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-sgx-sdk/issues/219#issuecomment-611302293

Re: [apache/incubator-teaclave-sgx-sdk] http_req Illegal instruction (#219)

Posted by Yu Ding <no...@github.com>.
Closed #219.

-- 
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-sgx-sdk/issues/219#event-3216754006