This checks if the SigningProfile object contains configurations that are only effective with a local signer which has access to CA private key.
()
| 547 | // This checks if the SigningProfile object contains configurations that are only effective with a local signer |
| 548 | // which has access to CA private key. |
| 549 | func (p *SigningProfile) hasLocalConfig() bool { |
| 550 | if p.Usage != nil || |
| 551 | p.IssuerURL != nil || |
| 552 | p.OCSP != "" || |
| 553 | p.ExpiryString != "" || |
| 554 | p.BackdateString != "" || |
| 555 | p.CAConstraint.IsCA || |
| 556 | !p.NotBefore.IsZero() || |
| 557 | !p.NotAfter.IsZero() || |
| 558 | p.NameWhitelistString != "" || |
| 559 | len(p.CTLogServers) != 0 { |
| 560 | return true |
| 561 | } |
| 562 | return false |
| 563 | } |
| 564 | |
| 565 | // warnSkippedSettings prints a log warning message about skipped settings |
| 566 | // in a SigningProfile, usually due to remote signer. |