Skip to content
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

Add use_csr_serial_number option to PKI role #25709

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devon-mar
Copy link

Fixes #25708

Currently on /pki/sign/:name, the other fields that can have their values taken from the CSR, namely SANs and common_name, have a use_csr_* option to control whether or not they take their values from the CSR. serial_number is also taken from the CN in the CSR, but there is currently no way to ignore the serial_number in the CSR.

This PR adds the use_csr_serial_number PKI role parameter which controls whether or not the serial_number is taken from the CSR. It defaults to true so that the previous behaviour is kept. If a serial_number is provided in the JSON data, then that takes precedence over the value in the CSR.

@devon-mar devon-mar requested a review from a team as a code owner February 29, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use_csr_serial_number option for PKI roles
2 participants