mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-04 18:38:12 +02:00
autocert: update cache method invocation
The method CacheUnmanagedTLSCertificate() now returns a certificate hash in addition to an error value.
This commit is contained in:
parent
6712042e4f
commit
f3b924e5a8
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ func (mgr *Manager) getCertMagicConfig(ctx context.Context, cfg *config.Config)
|
|||
}
|
||||
// add existing certs to the cache, and staple OCSP
|
||||
for _, cert := range certs {
|
||||
if err := mgr.certmagic.CacheUnmanagedTLSCertificate(ctx, cert, nil); err != nil {
|
||||
if _, err := mgr.certmagic.CacheUnmanagedTLSCertificate(ctx, cert, nil); err != nil {
|
||||
return nil, fmt.Errorf("config: failed caching cert: %w", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue