Add additional properties to provisioner converters
This commit is contained in:
parent
a7b2f5f27d
commit
920c4f02c5
1 changed files with 7 additions and 0 deletions
|
@ -861,6 +861,9 @@ func ProvisionerToCertificates(p *linkedca.Provisioner) (provisioner.Interface,
|
||||||
Type: p.Type.String(),
|
Type: p.Type.String(),
|
||||||
Name: p.Name,
|
Name: p.Name,
|
||||||
ForceCN: cfg.ForceCn,
|
ForceCN: cfg.ForceCn,
|
||||||
|
TermsOfService: cfg.TermsOfService,
|
||||||
|
Website: cfg.Website,
|
||||||
|
CaaIdentities: cfg.CaaIdentities,
|
||||||
RequireEAB: cfg.RequireEab,
|
RequireEAB: cfg.RequireEab,
|
||||||
Challenges: challengesToCertificates(cfg.Challenges),
|
Challenges: challengesToCertificates(cfg.Challenges),
|
||||||
AttestationFormats: attestationFormatsToCertificates(cfg.AttestationFormats),
|
AttestationFormats: attestationFormatsToCertificates(cfg.AttestationFormats),
|
||||||
|
@ -1119,6 +1122,10 @@ func ProvisionerToLinkedca(p provisioner.Interface) (*linkedca.Provisioner, erro
|
||||||
Data: &linkedca.ProvisionerDetails_ACME{
|
Data: &linkedca.ProvisionerDetails_ACME{
|
||||||
ACME: &linkedca.ACMEProvisioner{
|
ACME: &linkedca.ACMEProvisioner{
|
||||||
ForceCn: p.ForceCN,
|
ForceCn: p.ForceCN,
|
||||||
|
TermsOfService: p.TermsOfService,
|
||||||
|
Website: p.Website,
|
||||||
|
CaaIdentities: p.CaaIdentities,
|
||||||
|
RequireEab: p.RequireEAB,
|
||||||
Challenges: challengesToLinkedca(p.Challenges),
|
Challenges: challengesToLinkedca(p.Challenges),
|
||||||
AttestationFormats: attestationFormatsToLinkedca(p.AttestationFormats),
|
AttestationFormats: attestationFormatsToLinkedca(p.AttestationFormats),
|
||||||
AttestationRoots: provisionerPEMToLinkedca(p.AttestationRoots),
|
AttestationRoots: provisionerPEMToLinkedca(p.AttestationRoots),
|
||||||
|
|
Loading…
Reference in a new issue