Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopFirstArgument ¶
PopFirstArgument returns the first element and the rest of a string slice and return error if failed to do so. It is a helper function to parse non-flag arguments previously used in cfssl commands.
func PrintCert ¶
func PrintCert(key, csrBytes, cert []byte)
PrintCert outputs a cert, key and csr to stdout
func PrintOCSPResponse ¶
func PrintOCSPResponse(resp []byte)
PrintOCSPResponse outputs an OCSP response to stdout
func RootFromConfig ¶
RootFromConfig returns a universal signer Root structure that can be used to produce a signer.
Types ¶
type Command ¶
type Command struct { // The Usage Text UsageText string // Flags to look up in the global table Flags []string // Main runs the command, args are the arguments after flags Main func(args []string, c Config) error }
Command holds the implementation details of a cfssl command.
type Config ¶
type Config struct { Hostname string CertFile string CSRFile string CAFile string CAKeyFile string KeyFile string IntermediatesFile string CABundleFile string IntBundleFile string Address string Port int ConfigFile string CFG *config.Config Profile string IsCA bool IntDir string Flavor string Metadata string Domain string IP string Remote string Label string AuthKey string Module string Token string PIN string PKCS11Label string ResponderFile string Status string Reason int RevokedAt string Interval int64 List bool Family string Scanner string }
Config is a type to hold flag values used by cfssl commands.
Click to show internal directories.
Click to hide internal directories.