apache / apache/teaclave-sgx-sdk

Running TLSServer and TLSClient

Open
#226 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.2k
Forks
268
PR merge metrics
No merged PRs in 30d

Description

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. :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the TLSServer and TLSClient examples and the Docker port mappings described in the issue, then reproduce the connection attempt using the shown localhost endpoint and ca.cert. Done means establishing a documented, working way to run both examples across the two containers, or identifying the specific networking configuration that prevents the connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, rust
Domain
networking, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.