From 503c9f6101bafdbb3991c07181568b2a0ab10a33 Mon Sep 17 00:00:00 2001 From: Oleksandr Kovalchuk Date: Thu, 14 May 2020 13:20:55 +0300 Subject: [PATCH] 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 --- authority/provisioner/acme.go | 1 + 1 file changed, 1 insertion(+) diff --git a/authority/provisioner/acme.go b/authority/provisioner/acme.go index e414410b..abeedaf1 100644 --- a/authority/provisioner/acme.go +++ b/authority/provisioner/acme.go @@ -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 }