Skip to content

doc: amend description to point to CertificateParams for additional explanation#433

Open
mcr wants to merge 1 commit into
rustls:mainfrom
mcr:csr-doc-extend
Open

doc: amend description to point to CertificateParams for additional explanation#433
mcr wants to merge 1 commit into
rustls:mainfrom
mcr:csr-doc-extend

Conversation

@mcr
Copy link
Copy Markdown

@mcr mcr commented May 26, 2026

amend CertificateSigningRequest documentation to more clearly point at CertificateParams as the way to generate a new CSR with attributes.
[In the future, building one from a CSR attributes (RFC9908) object will be contributed]

Copy link
Copy Markdown
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 for the PR. I think it's a good idea but had nits to consider for the impl.

Comment thread rcgen/src/csr.rs
/// A new certificate signing request is created by filling out a CertificateParams object
/// and then calling serialize_request() or serialize_request_with_attributes() with a
/// KeyPair (or other SigningKey capable trait).
///
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.

Nit: the trailing /// without content doesn't seem necessary.

Comment thread rcgen/src/csr.rs

/// A certificate signing request (CSR) that can be encoded to PEM or DER.
///
/// A new certificate signing request is created by filling out a CertificateParams object
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.

I think it would be nicer to use intra-item rustdoc links for CertificateParams, KeyPair, SigningKey, and the ref'd methods.

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