We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0755ca4 commit 9df4e34Copy full SHA for 9df4e34
packager/certcache/certcache.go
@@ -823,8 +823,12 @@ func (this *CertCache) reloadCertIfExpired() {
823
func PopulateCertCache(config *util.Config, key crypto.PrivateKey,
824
developmentMode bool, autoRenewCert bool) (*CertCache, error) {
825
826
- if config.CertFile == "" || config.NewCertFile == "" {
827
- return nil, errors.New("Missing cert file and new cert file paths in config.")
+ if config.CertFile == "" {
+ return nil, errors.New("Missing cert file path in config.")
828
+ }
829
+
830
+ if autoRenewCert && config.NewCertFile == "" {
831
+ return nil, errors.New("Missing new cert file path in config.")
832
}
833
834
certs, err := certloader.LoadCertsFromFile(config, developmentMode)
0 commit comments