Can I get the CN?
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 361
- Forks
- 165
- Avg merge
- 17h 34m
- Merged PRs (30d)
- 5
Description
With an older version of Hyper using OpenSSL I could do something like this:
if let Some(sslstream) = request.ssl::<SslStream<HttpStream>>() {
let ssl: &Ssl = sslstream.ssl();
let peer_x509: X509 = ssl.peer_certificate().unwrap();
let sn = peer_x509.subject_name();
cn = sn.text_by_nid(Nid::CN).unwrap();
debug!("cn: {}", &cn);
}
I need the CN to do anything useful on our corporate network.
Is it possible to do something like this when I'm using hyper-rustls?
If yes, how?
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the hyper-rustls integration and the OpenSSL example in the issue to determine whether the peer certificate and its CN are exposed. Done means identifying a supported way to obtain the CN, or documenting that this is not available through the integration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100