ForceUpdate forces a refresh of the PKI content
()
| 232 | |
| 233 | // ForceUpdate forces a refresh of the PKI content |
| 234 | func (spec *Spec) ForceUpdate() error { |
| 235 | ca, err := spec.getCurrentCA() |
| 236 | if err != nil { |
| 237 | return err |
| 238 | } |
| 239 | log.Infof("refresh was forced for %s", spec) |
| 240 | return spec.doRefresh(ca) |
| 241 | } |
| 242 | |
| 243 | func (spec *Spec) doRefresh(currentCA *x509.Certificate) error { |
| 244 | var keyPair *tls.Certificate |
no test coverage detected