-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sign-req: Option 'comply', certificate subject will comply with CA #995
Conversation
If a request file is received with unsuitable subject fields then force the signed certificate to comply with the subject fields of the CA certificate. This is achieved as follows: In DN mode 'cn_only', only the commonName can be changed. Use global option --req-cn='new-name' and sign-req command option 'comply' to force the commanName field to be changed. In DN mode 'org', all the fields can be changed. Use global options --req-*='new value' and sign-req command option 'comply' to force all the fields to comply. All fields not explicitly specified are loaded from the vars file, which will be configured in 'org' mode. The signed certificate output-file will retain the file-name-base of the original request-file, to maintain compatibility with the commands 'revoke' and 'renew'. Signed-off-by: Richard T Bonhomme <[email protected]>
This PR potentially supersedes #439 |
Requires thorough testing. The signed cert. output-file could be named after the new It may also transpire that editing the request file values is not suitable for EasyRSA, in the long run, and that this functionality be rejected, in favour of creating a new and correctly configured request file in the first place .. to be decided. This will not work for |
I am considering making Linking: #1089 |
FTR: The current unit-test
This cannot use option PR #439 looks like the front runner at this time. |
Superseded-by: #1111 |
If a request file is received with unsuitable subject fields then force the signed certificate to comply with the subject fields of the CA certificate.
This is achieved as follows:
In DN mode 'cn_only', only the commonName can be changed. Use global option --req-cn='new-name' and sign-req command option 'comply' to force the commanName field to be changed.
In DN mode 'org', all the fields can be changed. Use global options --req-*='new value' and sign-req command option 'comply' to force all the fields to comply. All fields not explicitly specified are loaded from the vars file, which will be configured in 'org' mode.
The signed certificate output-file will retain the file-name-base of the original request-file, to maintain compatibility with the commands 'revoke' and 'renew'.