Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificates ¶
type Certificates struct {
Identity Identity
}
Certificates contains all the certificates for the server. It has both their raw and processed values.
type Identity ¶
type Identity struct { Cert *x509.Certificate `graphql:"-"` CertRaw []byte CertHash string // SHA-1 hash of IdentityCertRaw Key *rsa.PrivateKey `graphql:"-"` KeyRaw []byte `graphql:"-"` Subject pkix.Name `graphql:"-"` NotBefore time.Time NotAfter time.Time }
Identity contains the certificates related to identifying and validating MDM clients
type RsaPublicKey ¶
RsaPublicKey reflects the ASN.1 structure of a PKCS#1 public key.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service contains the code for safely (using a Mutex) getting and updating certificates.
func NewService ¶
NewService initialises and returns a new CertificateService
func (*Service) GenerateIdentity ¶
GenerateIdentity creates a new identity certificate and key pair
func (*Service) MountAPI ¶
func (s *Service) MountAPI(builder *schemabuilder.Schema)
MountAPI attaches the Certificates Schema to the GraphQL API
Click to show internal directories.
Click to hide internal directories.