Skip to content

Commit

Permalink
Merge pull request #14 from kinvolk/kai/bundle-cert
Browse files Browse the repository at this point in the history
Bundle intermediate certs again
  • Loading branch information
pothos authored Mar 27, 2023
2 parents c62e727 + 89770de commit a1013e4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ type Account struct {
}

type Certificate struct {
AccountEmail string `yaml:"account"`
CommonName string `yaml:"common_name"`
SAN []string `yaml:"subject_alternative_names"`
PreferredChain string `yaml:"preferred_chain"`
AccountEmail string `yaml:"account"`
CommonName string `yaml:"common_name"`
SAN []string `yaml:"subject_alternative_names"`
PreferredChain string `yaml:"preferred_chain"`

dir string
}
Expand Down Expand Up @@ -395,8 +395,9 @@ func (d *Daemon) requestCertificate(certificate Certificate, force bool) {
nameList = append(nameList, certificate.SAN...)

request := legocert.ObtainRequest{
Domains: nameList,
Domains: nameList,
PreferredChain: certificate.PreferredChain,
Bundle: true,
}

cert, err := legoClient.Certificate.Obtain(request)
Expand Down

0 comments on commit a1013e4

Please sign in to comment.