mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04: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
@ -92,7 +92,11 @@ func (p *PKI) Start() error {
|
|||||||
truststore.WithJava(),
|
truststore.WithJava(),
|
||||||
)
|
)
|
||||||
if err != nil {
|
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…
x
Reference in New Issue
Block a user