mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-26 08:05:52 +03:00
[GH-ISSUE #564] Certificates: add keypair + CSR generation command #155
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/564
Summary
Add a first-class, non-interactive command to generate a signing private key + CSR that can be fed directly into existing certificate creation workflows.
Today,
asc certificates createrequires a CSR file (--csr), but generating a CSR is currently an external/manual step.Why this matters
CSR generation is a common “first mile” step for signing automation:
Current state (verified)
asc certificates create --certificate-type TYPE --csr ./cert.csrexists.asccommand.asc certificates createaccepts both PEM and “normalized base64” CSR input (seereadCSRContent).Proposed UX
Command
Add a new subcommand under
certificates(name bikeshed is fine):asc certificates csr generate(preferred)asc certificates csr-generateExamples
Flags (proposal)
Required:
--key-outprivate key output path (PEM)--csr-outCSR output path (PEM)Optional:
--common-name(default:asc)--email,--organization,--organizational-unit,--country(optional subject fields)--key-type(defaultrsa)--key-size(default2048)--forceoverwrite existing output files (default false)--output json|table|markdownsummary output (default json)--prettyfor JSONBehavior requirements
--key-out/--csr-out.--force.0600on unix)0644)Output model
JSON (default)
Return a structured summary object, e.g.
This is intentionally “boring” and deterministic so CI/agents can reason about it.
Detailed implementation plan (TDD-first)
internal/cli/certificates/.crypto/rsafor key generationcrypto/x509for CSR creationencoding/pemfor PEM outputsecureopenutilities where possible):--force--forceAcceptance criteria
asc certificates csr generate --helpexists and is self-documenting.asc certificates create --csr ....make testpasses with new cmdtest coverage.