You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/04/19 09:10:32 UTC

[GitHub] [incubator-teaclave-sgx-sdk] edisonljh opened a new issue #226: Running TLSServer and TLSClient

edisonljh opened a new issue #226: Running TLSServer and TLSClient
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/226
 
 
   Does the TLSClient and Server example works within the docker? 
   
   I tried to run the TLSServer from docker ("Container A" with ` -p 8443:8443`) and exposed the container port. To test the connection, I tried to connect via my host to the docker container (0.0.0.0:8443) and it seems to work (able to attempt to connect, but the connection is unsuccessful.)
   
   Next, I started a new docker container (Container B with ` -p 8442:8443` flag) and tried to run the sample TLSClient. 
   
   However, it appears to always hit an error on this line.
   
   ```
   impl TlsClient {
       fn ready(&mut self,
                poll: &mut mio::Poll,
                ev: &mio::Event) -> bool {
   
           assert_eq!(ev.token(), CLIENT);
   
           if ev.readiness().is_error() {
               println!("Error");
               return false;
           }
   ...
   ```
   
   Log:
   ```
   [+] Test tlsclient in enclave, start!
   [+] TlsClient new localhost ./ca.cert
   [+] Tlsclient new success!
   Error
   [+] Test tlsclient in enclave, done!
   ```
   
   Can you point me to the right way to run these TLSClient and TLSServer from docker? Thank you so much. Have i misconfigured the docker networking in any way?
   
   Any help will be much appreciated. :) 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org