()
| 49 | } |
| 50 | |
| 51 | func (p *PKI) renewCerts() { |
| 52 | for _, ca := range p.CAs { |
| 53 | err := p.renewCertsForCA(ca) |
| 54 | if err != nil { |
| 55 | p.log.Error("renewing intermediate certificates", |
| 56 | zap.Error(err), |
| 57 | zap.String("ca", ca.ID)) |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func (p *PKI) renewCertsForCA(ca *CA) error { |
| 63 | ca.mu.Lock() |
no test coverage detected