Join our Newsletter — 33% off our NHI Course

How should security teams generate a certificate signing request when setting up SSL certificates?

Security teams should generate the CSR on the system where the private key will live, then keep the private key protected and submit only the CSR to the certificate authority. The request must include accurate subject details, and teams should follow CA/B Forum baseline requirements so the certificate can be issued and installed without avoidable delays.

What a CSR Actually Does in Certificate Issuance

A certificate signing request is the package the CA uses to issue an SSL/TLS certificate, so the request should be created where the private key will remain under local control. That keeps the key out of transit, out of email, and out of the CA’s hands. The CSR itself carries the public key and subject information needed for validation and issuance.

The practical reason this matters is simple: if the private key is ever exposed during the request process, the eventual certificate inherits that exposure. Certificate issuance is not just an administrative step, it is the point where trust is bound to a specific keypair, so teams should treat CSR generation as part of key protection, not as a clerical formality.

For teams managing machine or service certificates at scale, the same logic applies to lifecycle control. The The Critical Gaps in Machine Identity Management report highlights how often certificate and identity failures stem from weak process discipline, while the Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs shows why issuance, rotation, and ownership need to be treated as one control plane.

What to Put in the CSR and What to Validate Before Submission

A CSR should contain accurate subject details, the correct public key, and the intended key usage profile for the certificate being requested. If the subject fields are wrong, the CA may reject the request or issue a certificate that does not match the intended hostname, service, or organisation details. That creates avoidable delays and can lead to reissuance work that is entirely preventable.

Teams should also verify that the CSR was generated from the right key type and length for the deployment target, and that the private key is not being copied between systems just to simplify the workflow. Best practice is to keep the request generation close to the final installation point, then move only the CSR to the CA approval workflow. For issuance and naming rules, the CA/Browser Forum baseline requirements are the relevant external reference for publicly trusted certificates.

Where certificate requests support workload or service-to-service trust, the same discipline shows up in workload identity programs. The Guide to SPIFFE and SPIRE is useful when the certificate is part of a broader attestation and identity model, and the Ultimate Guide to NHIs is a good reference for understanding how certificates fit into machine identity governance.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while CIS Controls v8, NIST SP 800-63 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 CIS 5 — Account Management CSR workflows depend on controlled issuance and ownership of certificate-bearing accounts.
CIS 6 — Access Control Management CSR generation should preserve least-privilege handling of private keys and issuance access.
CIS 3 — Data Protection Private keys are sensitive cryptographic material that must remain protected during CSR creation.
Recommendation — Apply account governance to ensure certificate requests are tied to verified owners and approved issuance paths. Restrict who can generate, approve, and install certificates and protect private keys from broad access. Protect private keys at creation and storage time so only the CSR leaves the secure boundary.
NIST SP 800-63 1.1 — Digital Identity Guidelines Certificate issuance is an authenticator lifecycle issue, including binding and proofing expectations.
Recommendation — Validate the identity and binding requirements before issuing a certificate-backed authenticator.
NIST CSF 2.0 PR.AC — Identity Management, Authentication and Access Control CSR generation supports controlled key ownership and access-bound issuance for trusted certificates.
PR.DS — Data Security The private key must remain protected while only the CSR is submitted externally.
GV.RM — Risk Management Strategy Certificate request process design affects trust, outage risk, and operational resilience.
Recommendation — Enforce identity and access controls around certificate generation, approval, and installation. Protect private keys as sensitive data and ensure only non-secret request material is transmitted. Treat certificate issuance workflow as a managed risk process with clear ownership and validation.
OWASP Non-Human Identity Top 10 NHI-01 — Secrets and Credential Management Certificates and private keys are identity-bearing material that must not be exposed during issuance.
NHI-05 — Lifecycle and Rotation Certificate requests sit within the issuance, renewal, and rotation lifecycle for machine identities.
Recommendation — Keep private keys protected and send only the CSR through the issuance process. Track certificate requests as part of the full lifecycle, from creation through renewal and revocation.

Practitioner Guidance

What to verify: Confirm the CSR was generated on the target host or equivalent secure environment, and that the private key never left that boundary. If the same team is generating requests for many hosts, standardise the subject template and key parameters so issuance failures do not come from inconsistent naming or weak request hygiene.

Decision rule: If the certificate will authenticate a production service, treat CSR generation and key storage as a control point, not an administrative task. Any workflow that requires the private key to be copied, shared, or mailed around should be redesigned before it becomes normal practice.

Practitioner takeaway: The CSR is safe to move; the private key is not. The strongest operational pattern is to generate the keypair locally, submit only the CSR, and make subject accuracy and issuance policy checks part of the same approval step.