10000 expand documentation for Certificate and PrivateKey by folkertdev · Pull Request #1301 · rustls/rustls · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

expand documentation for Certificate and PrivateKey #1301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 22, 2023

Conversation

folkertdev
Copy link
Contributor

Some of the rustls documentation is... not that helpful to those unfamiliar with TLS and certificates. The Certificate and PrivateKey types had particularly little documentation. This is my attempt to improve the situation.

I've included code samples using rustls_pemfile. tried to give some info to quickly check "does this file I have match roughly what rustls would expect" and provide some links to more info and the rcgen crate, if a user wants to generate a new certificate or private key.

Copy link
Member
@djc djc left a comment

Choose a reason for hiding this comment

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

Thanks, these are great improvements!

Copy link
Member
@cpu cpu left a comment

Choose a reason for hiding this comment

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

Thank you! I think this will be helpful.

@codecov
Copy link
codecov bot commented May 22, 2023

Codecov Report

Merging #1301 (8a50c44) into main (c8e9e0b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1301   +/-   ##
=======================================
  Coverage   95.55%   95.55%           
=======================================
  Files          60       60           
  Lines       14351    14351           
=======================================
  Hits        13713    13713           
  Misses        638      638           
Impacted Files Coverage Δ
rustls/src/key.rs 94.44% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@djc
Copy link
Member
djc commented May 22, 2023

(Going to work around the MSRV failure with #1302, feel free to ignore.)

this is only relevant for implementers of ClientCertVerifier or ServerCertVerifier traits, and what validation should happen should be documented on those trait's methods.
@folkertdev folkertdev force-pushed the certificate-private-key-docs branch from 416ae2a to 8a50c44 Compare May 22, 2023 14:51
Copy link
Member
@cpu cpu left a comment

Choose a reason for hiding this comment

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

Thanks!

@djc djc merged commit 4d71059 into rustls:main May 22, 2023
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
0