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
pull/260/head
Oleksandr Kovalchuk 4 years ago
parent f126962f3f
commit 503c9f6101
No known key found for this signature in database
GPG Key ID: 8D9EF9A2F5AD3CF7

@ -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
}

Loading…
Cancel
Save