check for SAN and SANRegex
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
50cda0df44
commit
a7a70fc91c
1 changed files with 3 additions and 0 deletions
|
|
@ -43,5 +43,8 @@ func (c EnforcementCriteria) Valid() error {
|
|||
if c.PredicateType == "" {
|
||||
return fmt.Errorf("PredicateType must be set")
|
||||
}
|
||||
if c.SANRegex == "" && c.SAN == "" {
|
||||
return fmt.Errorf("SANRegex or SAN must be set")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue