Skip to content

Conversation

Fatumayattani
Copy link

What was wrong?

Issue #700 follow-up. After @guha-rahul’s TLS (PR #831) was merged, there was still no simple runnable example demonstrating how to start a TLS-enabled host in py-libp2p.
Developers needed a small working reference to verify that the new transport layer functions as expected.

How was it fixed?

Added a short example under examples/doc-examples/example_tls.py that demonstrates how to create and start a TLS-secured host using TLSTransport.
The example runs locally, prints the peer ID, and lists the secure multiaddrs for verification.

To-Do

Output

TLS host starts successfully with secure addresses and confirms that TLS handshake is active.
A sample terminal output is attached below for reference.

pyexample

Cute Animal Picture

@seetadev
Copy link
Contributor

seetadev commented Oct 8, 2025

@yashksaini-coder : Thank you so much to you and @Fatumayattani for your efforts. Appreciate it.

It took me sometime to reach this PR as there were close to 12+ PRs in the review queue. Did re-run the CI/CD pipeline. Waiting for the test results.

Wish if you could collaborate with @Fatumayattani and arrive at a good conclusion on this PR soon.

We need a proper screencast demonstrating the example using TLS along with proper documentation to enable interop testing using TLS. CCing @acul71, who could help you on the transport interop testing front using TLS example.

@acul71
Copy link
Contributor

acul71 commented Oct 8, 2025

CCing @acul71, who could help you on the transport interop testing front using TLS example.

ping me when is merged, I'll try to integrate in interop-tests

@Fatumayattani
Copy link
Author

Thank you @seetadev and @acul71 for the feedback and clear guidance 🙏
Really appreciate everyone here for the support.

Here’s the screencast showing the TLS example running successfully

libv.mp4

@yashksaini-coder , please feel free to add the documentation part to make it easier to use for interop testing 🙏

@yashksaini-coder
Copy link
Contributor

Thank you @seetadev and @acul71 for the feedback and clear guidance 🙏 Really appreciate everyone here for the support.

Here’s the screencast showing the TLS example running successfully

libv.mp4
@yashksaini-coder , please feel free to add the documentation part to make it easier to use for interop testing 🙏

Got it, I will add the documentation along with discussion post to map the implementation done

@acul71
Copy link
Contributor

acul71 commented Oct 9, 2025

Here’s the screencast showing the TLS example running successfully

Hi @Fatumayattani thanks for the video. Is that showing a python server ? Is there a client also ?

@Fatumayattani
Copy link
Author

Here’s the screencast showing the TLS example running successfully

Hi @Fatumayattani thanks for the video. Is that showing a python server ? Is there a client also ?

Hi @acul71, yes that’s the server side. I’ll add a simple client example too to make interop testing smoother 🙌🏽

@seetadev
Copy link
Contributor

@yashksaini-coder : Thank you so much for considering our feedback points. Appreciate the efforts.

Re-ran the CI/CD pipeline. Hopefully, all the tests should pass.

CCing @acul71, who could use this example for testing transport interop tests.

@seetadev
Copy link
Contributor

@yashksaini-coder : Wish if you could resolve the CI/CD issues.

…le scripts; improve certificate verification docstring formatting
@yashksaini-coder
Copy link
Contributor

@yashksaini-coder : Wish if you could resolve the CI/CD issues.

All issues resolved, failing ci-checks. Requesting an update and further feedback.
@seetadev @acul71 @lla-dane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants