1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

pki: Don't treat cert installation failure as error

See https://caddy.community/t/fail-to-start-caddy2-not-nss-security-databases-found/7223?u=matt
This commit is contained in:
Matthew Holt 2020-03-14 15:20:04 -06:00
parent 7a4548c582
commit acf4dde1dd
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -92,7 +92,11 @@ func (p *PKI) Start() error {
truststore.WithJava(),
)
if err != nil {
return fmt.Errorf("adding root certificate to trust store: %v", err)
// could be some system dependencies that are missing;
// shouldn't totally prevent startup, but we should log it
p.log.Error("failed to install root certificate",
zap.Error(err),
zap.String("certificate_file", ca.rootCertPath))
}
}