mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
appsec: use CA from client credentials when connecting to LAPI (#3505)
This commit is contained in:
parent
50a5ef5345
commit
c4f9adb799
1 changed files with 2 additions and 2 deletions
|
@ -283,8 +283,8 @@ func (w *AppsecSource) Configure(yamlConfig []byte, logger *log.Entry, metricsLe
|
|||
|
||||
caCertPath := ""
|
||||
|
||||
if csConfig.API.Server.TLS != nil {
|
||||
caCertPath = csConfig.API.Server.TLS.CACertPath
|
||||
if csConfig.API.Client != nil && csConfig.API.Client.Credentials != nil {
|
||||
caCertPath = csConfig.API.Client.Credentials.CACertPath
|
||||
}
|
||||
|
||||
w.lapiCACertPool, err = loadCertPool(caCertPath, w.logger)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue