forked from TrueCloudLab/certificates
Add processing of RequireEAB through Linked CA
This commit is contained in:
parent
7dad7038c3
commit
71b3f65df1
2 changed files with 11 additions and 6 deletions
|
@ -510,12 +510,13 @@ func ProvisionerToCertificates(p *linkedca.Provisioner) (provisioner.Interface,
|
||||||
case *linkedca.ProvisionerDetails_ACME:
|
case *linkedca.ProvisionerDetails_ACME:
|
||||||
cfg := d.ACME
|
cfg := d.ACME
|
||||||
return &provisioner.ACME{
|
return &provisioner.ACME{
|
||||||
ID: p.Id,
|
ID: p.Id,
|
||||||
Type: p.Type.String(),
|
Type: p.Type.String(),
|
||||||
Name: p.Name,
|
Name: p.Name,
|
||||||
ForceCN: cfg.ForceCn,
|
ForceCN: cfg.ForceCn,
|
||||||
Claims: claims,
|
RequireEAB: cfg.RequireEab,
|
||||||
Options: options,
|
Claims: claims,
|
||||||
|
Options: options,
|
||||||
}, nil
|
}, nil
|
||||||
case *linkedca.ProvisionerDetails_OIDC:
|
case *linkedca.ProvisionerDetails_OIDC:
|
||||||
cfg := d.OIDC
|
cfg := d.OIDC
|
||||||
|
|
|
@ -346,6 +346,7 @@ Below is an example of an ACME provisioner in the `ca.json`:
|
||||||
"type": "ACME",
|
"type": "ACME",
|
||||||
"name": "my-acme-provisioner",
|
"name": "my-acme-provisioner",
|
||||||
"forceCN": true,
|
"forceCN": true,
|
||||||
|
"requireEAB": false,
|
||||||
"claims": {
|
"claims": {
|
||||||
"maxTLSCertDuration": "8h",
|
"maxTLSCertDuration": "8h",
|
||||||
"defaultTLSCertDuration": "2h",
|
"defaultTLSCertDuration": "2h",
|
||||||
|
@ -361,6 +362,9 @@ Below is an example of an ACME provisioner in the `ca.json`:
|
||||||
* `forceCN` (optional): force one of the SANs to become the Common Name, if a
|
* `forceCN` (optional): force one of the SANs to become the Common Name, if a
|
||||||
common name is not provided.
|
common name is not provided.
|
||||||
|
|
||||||
|
* `requireEAB` (optional): require clients to provide External Account Binding
|
||||||
|
credentials when creating an ACME Account.
|
||||||
|
|
||||||
* `claims` (optional): overwrites the default claims set in the authority, see
|
* `claims` (optional): overwrites the default claims set in the authority, see
|
||||||
the [top](#provisioners) section for all the options.
|
the [top](#provisioners) section for all the options.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue