forked from TrueCloudLab/certificates
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(),
|
||||
Name: p.Name,
|
||||
ForceCN: cfg.ForceCn,
|
||||
TermsOfService: cfg.TermsOfService,
|
||||
Website: cfg.Website,
|
||||
CaaIdentities: cfg.CaaIdentities,
|
||||
RequireEAB: cfg.RequireEab,
|
||||
Challenges: challengesToCertificates(cfg.Challenges),
|
||||
AttestationFormats: attestationFormatsToCertificates(cfg.AttestationFormats),
|
||||
|
@ -1119,6 +1122,10 @@ func ProvisionerToLinkedca(p provisioner.Interface) (*linkedca.Provisioner, erro
|
|||
Data: &linkedca.ProvisionerDetails_ACME{
|
||||
ACME: &linkedca.ACMEProvisioner{
|
||||
ForceCn: p.ForceCN,
|
||||
TermsOfService: p.TermsOfService,
|
||||
Website: p.Website,
|
||||
CaaIdentities: p.CaaIdentities,
|
||||
RequireEab: p.RequireEAB,
|
||||
Challenges: challengesToLinkedca(p.Challenges),
|
||||
AttestationFormats: attestationFormatsToLinkedca(p.AttestationFormats),
|
||||
AttestationRoots: provisionerPEMToLinkedca(p.AttestationRoots),
|
||||
|
|
Loading…
Reference in a new issue