Skip to content

Add support for TLS on JAK testserver#420

Open
barkha06 wants to merge 23 commits into
mainfrom
p2p-tls-jak
Open

Add support for TLS on JAK testserver#420
barkha06 wants to merge 23 commits into
mainfrom
p2p-tls-jak

Conversation

@barkha06

@barkha06 barkha06 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor
  • Created a KeyStoreService class that defines getTLSIdentity.
  • Both Java and Android have different TLSIdentity method definitions so they each implement a subclass of KeyStoreService
  • The getTLSIdentity method stores the generated identity data in the keystore and returns an instance of TLSIdentity class. If the idenitity is null and disableTLS is false, the method returns an existing identity from the keystore via the alias.
  • Port is dynamically assigned by OS to avoid any address in use errors
  • Added timout between test steps to avoid server disconnected errors

@barkha06 barkha06 requested review from borrrden and pasin June 3, 2026 14:48
listener2 = Listener(
all_dbs[0], ["_default._default"], 59840, identity=None
)
await asyncio.sleep(30)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an excessively long sleep. What is it for? Please add a comment, the function name does not imply that this needs any wait time.

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.

2 participants