mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-16 16:19:15 +08:00
fix ca pool provisioning
This commit is contained in:
parent
c8d150daf3
commit
b130e430a0
@ -749,10 +749,14 @@ func (clientauth *ClientAuthentication) provision(ctx caddy.Context) error {
|
||||
|
||||
// if we have TrustedCACerts explicitly set, create an 'inline' CA and return
|
||||
if len(clientauth.TrustedCACerts) > 0 {
|
||||
clientauth.ca = InlineCAPool{
|
||||
caPool := InlineCAPool{
|
||||
TrustedCACerts: clientauth.TrustedCACerts,
|
||||
}
|
||||
return nil
|
||||
err := caPool.Provision(ctx)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
clientauth.ca = caPool
|
||||
}
|
||||
|
||||
// if we don't have any CARaw set, there's not much work to do
|
||||
|
Loading…
x
Reference in New Issue
Block a user