rustls / rustls/hyper-rustls

Cannot access peer certificates with example's TlsStream

Open
#198 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
361
Forks
165
Avg merge
17h 34m
Merged PRs (30d)
5

Description

In the example's TlsStream, you cannot access the peer certificates from tokio_rustls's TlsStream in make_service_fn, even if you try to expose the state property, it's basically always Handshaking. Is there some way to change the example so you could wait until the handshaking is over so you can access this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the example's TlsStream setup and the make_service_fn flow, then inspect tokio_rustls's TlsStream state handling. Reproduce the attempt to access peer certificates and determine how handshake completion is represented. Done means the example provides a working path to peer certificates after handshaking.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.