Skip to content

Allow configuring certificate key type (RSA/ECDSA)#95

Open
pigam wants to merge 4 commits intokrtab:mainfrom
pigam:feat/certificate-key-type
Open

Allow configuring certificate key type (RSA/ECDSA)#95
pigam wants to merge 4 commits intokrtab:mainfrom
pigam:feat/certificate-key-type

Conversation

@pigam
Copy link
Copy Markdown

@pigam pigam commented Apr 20, 2026

Closes #53

This PR adds a key_type field to the certificate configuration, allowing users to choose the cryptographic scheme used when generating the certificate private key.

Supported values

  • ecdsa_p256 (default, preserves existing behavior)
  • rsa_2048
  • rsa_3072
  • rsa_4096

Changes

  • src/config.rs: new CertKeyType enum, new key_type field on Certificate
  • src/main_logic.rs: new generate_private_key() function dispatching on key_type
  • integration-testing/: three new test certificates (RSA 2048, RSA 4096, ECDSA P-256 explicit) with verification of key type and certificate algorithm
  • README.md: documentation of the new field

Backward compatibility

Existing configuration files without key_type continue to work unchanged (ecdsa_p256 is the default).

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.

Allow users to request certificates with other crypto-schemes than ECDSA

1 participant