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:
parent
7a4548c582
commit
acf4dde1dd
1 changed files with 5 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue