forked from TrueCloudLab/certificates
18 lines
495 B
Go
18 lines
495 B
Go
|
package scep
|
||
|
|
||
|
import (
|
||
|
"crypto/rsa"
|
||
|
"crypto/x509"
|
||
|
)
|
||
|
|
||
|
// Provisioner is an interface that implements a subset of the provisioner.Interface --
|
||
|
// only those methods required by the SCEP api/authority.
|
||
|
type Provisioner interface {
|
||
|
// AuthorizeSign(ctx context.Context, token string) ([]provisioner.SignOption, error)
|
||
|
// GetName() string
|
||
|
// DefaultTLSCertDuration() time.Duration
|
||
|
// GetOptions() *provisioner.Options
|
||
|
GetCACertificates() []*x509.Certificate
|
||
|
GetSigningKey() *rsa.PrivateKey
|
||
|
}
|