Add config option to force CN

Add configuration option `forceCN` to ACME provisioner. When this option
is set to `true`, provisioner should generate Subject.CommonName for
certificate if it was not present in the request. Default value of
`false` should keep the existing behavior (do not modify CSR and
certificate).

Ref: https://github.com/smallstep/certificates/issues/259
This commit is contained in:
Oleksandr Kovalchuk 2020-05-14 13:20:55 +03:00
parent f126962f3f
commit 503c9f6101
No known key found for this signature in database
GPG key ID: 8D9EF9A2F5AD3CF7

View file

@ -15,6 +15,7 @@ type ACME struct {
Type string `json:"type"`
Name string `json:"name"`
Claims *Claims `json:"claims,omitempty"`
ForceCN bool `json:"forceCN,omitempty"`
claimer *Claimer
}