server

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 38 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyCertificateMiddleware added in v1.5.0

func VerifyCertificateMiddleware(validateSCEPIssuer bool, validateSCEPExpiration bool, store ScepVerifyDepot, logger log.Logger) mdm.Middleware

Types

type ScepVerifyDepot added in v1.5.0

type ScepVerifyDepot interface {
	CA(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error)
	HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool) (bool, error)
}

type Server

type Server struct {
	ConfigPath             string
	Depsim                 string
	PubClient              pubsub.PublishSubscriber
	DB                     *bolt.DB
	ServerPublicURL        string
	SCEPChallenge          string
	SCEPClientValidity     int
	TLSCertPath            string
	SCEPDepot              depot.Depot
	UseDynSCEPChallenge    bool
	GenDynSCEPChallenge    bool
	SCEPChallengeDepot     challenge.Store
	ProfileDB              profile.Store
	ConfigDB               config.Store
	RemoveDB               block.Store
	CommandWebhookURL      string
	DEPClient              *dep.Client
	SyncDB                 *syncbuiltin.DB
	NoCmdHistory           bool
	ValidateSCEPIssuer     bool
	ValidateSCEPExpiration bool
	UDIDCertAuthWarnOnly   bool
	Queue                  string

	APNSPushService apns.Service
	CommandService  command.Service
	MDMService      mdm.Service
	EnrollService   enroll.Service
	SCEPService     scep.Service
	ConfigService   config.Service

	WebhooksHTTPClient *http.Client
}

func (*Server) CreateDEPSyncer

func (c *Server) CreateDEPSyncer(logger log.Logger) (sync.Syncer, error)

func (*Server) Setup

func (c *Server) Setup(logger log.Logger) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL