Skip to content

Commit

Permalink
Fix regression introduced after major refactoring (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini authored Jul 19, 2023
1 parent 3b99ab6 commit bb28293
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flasher/winc.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ func (f *WincFlasher) FlashCertificates(certificatePaths *paths.PathList, URLs [
logrus.Infof("Converting and flashing certificate %s", certPath)
flasherOut.Write([]byte(fmt.Sprintf("Converting and flashing certificate %s\n", certPath)))

// Needed to mantain backword compatability
if certPath.Ext() == ".pem" {
certData, err := certPath.ReadFile()
if err != nil {
return err
}
certificatesData = append(certificatesData, certData...)
continue
}

certs, err := certificates.LoadCertificatesFromFile(certPath)
if err != nil {
return err
Expand Down

0 comments on commit bb28293

Please sign in to comment.