Commit c13b180 1 parent 5b1eebd commit c13b180 Copy full SHA for c13b180
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -707,8 +707,9 @@ func (a *Authority) init() error {
707
707
case a .requiresSCEP () && a .GetSCEP () == nil :
708
708
if a .scepOptions == nil {
709
709
options := & scep.Options {
710
- Roots : a .rootX509Certs ,
711
- Intermediates : a .intermediateX509Certs ,
710
+ Roots : a .rootX509Certs ,
711
+ Intermediates : a .intermediateX509Certs ,
712
+ SkipValidation : a .config .SkipValidation ,
712
713
}
713
714
714
715
// intermediate certificates can be empty in RA mode
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ type Options struct {
26
26
// are used to be able to load the provisioners when the SCEP authority is being
27
27
// validated.
28
28
SCEPProvisionerNames []string
29
+ // SkipValidation is used to skip the validation of the options, when implementing custom
30
+ // integrations
31
+ SkipValidation bool
29
32
}
30
33
31
34
type comparablePublicKey interface {
@@ -34,6 +37,9 @@ type comparablePublicKey interface {
34
37
35
38
// Validate checks the fields in Options.
36
39
func (o * Options ) Validate () error {
40
+ if o .SkipValidation {
41
+ return nil
42
+ }
37
43
switch {
38
44
case len (o .Intermediates ) == 0 :
39
45
return errors .New ("no intermediate certificate available for SCEP authority" )
You can’t perform that action at this time.
0 commit comments