Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ValidityDuration specifies the duration an TLS certificate is valid ValidityDuration = time.Hour * 24 * 365 * 2 // PkiKeySize is the size in bytes of the PKI key PkiKeySize = 4096 )
Variables ¶
This section is empty.
Functions ¶
func CreateSaveSSH ¶
func CreateSaveSSH(username, outputDirectory string) (privateKey *rsa.PrivateKey, publicKeyString string, err error)
CreateSaveSSH generates and stashes an SSH key pair.
Types ¶
type ArtifactWriter ¶
type ArtifactWriter struct { }
ArtifactWriter represents the object that writes artifacts
func (*ArtifactWriter) WriteTLSArtifacts ¶
func (w *ArtifactWriter) WriteTLSArtifacts(oe *api.OpenEnclave, template, parameters, artifactsDir string, certsGenerated bool, parametersOnly bool) error
WriteTLSArtifacts saves TLS certificates and keys to the server filesystem
type FileSaver ¶
type FileSaver struct { }
FileSaver represents the object that save string or byte data to file
type PkiKeyCertPair ¶
PkiKeyCertPair represents an PKI public and private cert pair
type TemplateGenerator ¶
type TemplateGenerator struct { }
TemplateGenerator represents the object that performs the template generation.
func InitializeTemplateGenerator ¶
func InitializeTemplateGenerator() (*TemplateGenerator, error)
InitializeTemplateGenerator creates a new template generator object
func (*TemplateGenerator) GenerateTemplate ¶
func (t *TemplateGenerator) GenerateTemplate(oe *api.OpenEnclave, generatorCode string, isUpgrade bool) (templateRaw string, parametersRaw string, certsGenerated bool, err error)
GenerateTemplate generates the template from the API Model
Source Files ¶
Click to show internal directories.
Click to hide internal directories.