variable scep client validity (#577)

* variable scep client validity

* update changelog
This commit is contained in:
Brett Demetris
2019-03-04 05:35:00 -08:00
committed by Scott Knight
parent 7d65dd8898
commit b50412f80a
3 changed files with 33 additions and 29 deletions

View File

@@ -38,20 +38,21 @@ import (
)
type Server struct {
ConfigPath string
Depsim string
PubClient pubsub.PublishSubscriber
DB *bolt.DB
ServerPublicURL string
SCEPChallenge string
TLSCertPath string
SCEPDepot *boltdepot.Depot
ProfileDB profile.Store
ConfigDB config.Store
RemoveDB block.Store
CommandWebhookURL string
DEPClient *dep.Client
SyncDB *syncbuiltin.DB
ConfigPath string
Depsim string
PubClient pubsub.PublishSubscriber
DB *bolt.DB
ServerPublicURL string
SCEPChallenge string
SCEPClientValidity int
TLSCertPath string
SCEPDepot *boltdepot.Depot
ProfileDB profile.Store
ConfigDB config.Store
RemoveDB block.Store
CommandWebhookURL string
DEPClient *dep.Client
SyncDB *syncbuiltin.DB
APNSPushService apns.Service
CommandService command.Service
@@ -336,7 +337,7 @@ func (c *Server) setupSCEP(logger log.Logger) error {
}
opts := []scep.ServiceOption{
scep.ClientValidity(365),
scep.ClientValidity(c.SCEPClientValidity),
scep.ChallengePassword(c.SCEPChallenge),
}
c.SCEPDepot = depot