Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extkeyusage ¶
func Extkeyusage(ExtendedKeyUsage []string) []x509.ExtKeyUsage
Types ¶
type Depot ¶
type Depot interface { CA(pass []byte, options ...string) ([]*x509.Certificate, *rsa.PrivateKey, error) Put(name string, crt *x509.Certificate, options ...string) error Serial(options ...string) (*big.Int, error) HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool, options ...string) (bool, error) FailureNotify(cert *x509.Certificate, m *scep.CSRReqMessage, message string) SuccessNotify(cert *x509.Certificate, m *scep.CSRReqMessage, message string) }
Depot is a repository for managing certificates
type Option ¶
type Option func(*Signer)
Option customizes Signer
func WithAllowRenewalDays ¶
WithAllowRenewalDays sets the allowable renewal time for existing certs
func WithAttributes ¶
WithAttributes specifies the attributes to use.
func WithCAPass ¶
WithCAPass specifies the password to use with an encrypted CA key
func WithProfile ¶
Profile is an optional argument to NewService which allows setting a profile for SCEP.
func WithValidityDays ¶
WithValidityDays sets the validity period new certs will use
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer signs x509 certificates and stores them in a Depot
func (*Signer) SignCSR ¶
func (s *Signer) SignCSR(m *scep.CSRReqMessage) (*x509.Certificate, error)
SignCSR signs a certificate using Signer's Depot CA
Click to show internal directories.
Click to hide internal directories.