Documentation
¶
Index ¶
- func GenerateCA(args []string)
- func GenerateCACmd(args []string) error
- func GenerateCSR(args []string)
- func GenerateCSRCmd(args []string) error
- func GenerateCSRFromFile(configPath string)
- func GenerateCSRFromFileCmd(configPath string) error
- func GenerateCert(args []string)
- func GenerateCertCmd(args []string) error
- func GenerateCertFromFile(configPath string)
- func GenerateCertFromFileCmd(configPath string) error
- func SummaryTable(details map[string]interface{})
- func ViewCA(args []string)
- func ViewCACmd(args []string) error
- func ViewCert(args []string)
- func ViewCertCmd(args []string) error
- func ViewCertificateDetails(certFile string)
- func ViewCertificateDetailsCmd(certFile string) error
- type InteractiveMode
- func (im *InteractiveMode) ConfirmGeneration() bool
- func (im *InteractiveMode) PromptCertificateType() string
- func (im *InteractiveMode) PromptDNSNames() []string
- func (im *InteractiveMode) PromptEmailAddresses() []string
- func (im *InteractiveMode) PromptExtendedKeyUsageOIDs() []string
- func (im *InteractiveMode) PromptFileOutput(defaultName string) string
- func (im *InteractiveMode) PromptIPAddresses() []net.IP
- func (im *InteractiveMode) PromptInt(prompt string, defaultValue int) int
- func (im *InteractiveMode) PromptKeyType() string
- func (im *InteractiveMode) PromptString(prompt, defaultValue string) string
- func (im *InteractiveMode) PromptStringSlice(prompt string) []string
- func (im *InteractiveMode) PromptSubjectInfo() map[string]string
- func (im *InteractiveMode) PromptValidity() int
- func (im *InteractiveMode) PromptYesNo(prompt string, defaultYes bool) bool
- type MenuMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCA ¶
func GenerateCA(args []string)
GenerateCA generates a CA certificate (wrapper that calls GenerateCACmd and handles exit)
func GenerateCACmd ¶
GenerateCACmd generates a CA certificate and returns an error instead of exiting
func GenerateCSR ¶
func GenerateCSR(args []string)
GenerateCSR generates a Certificate Signing Request (wrapper that calls GenerateCSRCmd and handles exit)
func GenerateCSRCmd ¶
GenerateCSRCmd generates a Certificate Signing Request and returns an error instead of exiting
func GenerateCSRFromFile ¶
func GenerateCSRFromFile(configPath string)
GenerateCSRFromFile generates CSRs from a configuration file
func GenerateCSRFromFileCmd ¶
GenerateCSRFromFileCmd generates CSRs from a config file and returns an error
func GenerateCert ¶
func GenerateCert(args []string)
GenerateCert generates a certificate (wrapper that calls GenerateCertCmd and handles exit)
func GenerateCertCmd ¶
GenerateCertCmd generates a certificate and returns an error instead of exiting
func GenerateCertFromFile ¶
func GenerateCertFromFile(configPath string)
GenerateCertFromFile generates certificates and CSRs from a configuration file
func GenerateCertFromFileCmd ¶
GenerateCertFromFileCmd generates certificates from a config file and returns an error
func SummaryTable ¶
func SummaryTable(details map[string]interface{})
SummaryTable displays a summary of certificate details before generation
func ViewCA ¶
func ViewCA(args []string)
ViewCA views CA details (wrapper that calls ViewCACmd and handles exit)
func ViewCACmd ¶
ViewCA views CA certificate details ViewCACmd views CA details and returns an error instead of exiting
func ViewCert ¶
func ViewCert(args []string)
ViewCert views certificate details (wrapper that calls ViewCertCmd and handles exit)
func ViewCertCmd ¶
ViewCert views certificate details ViewCertCmd views certificate details and returns an error instead of exiting
func ViewCertificateDetails ¶
func ViewCertificateDetails(certFile string)
ViewCertificateDetails displays certificate information (wrapper that calls ViewCertificateDetailsCmd and handles exit)
func ViewCertificateDetailsCmd ¶
ViewCertificateDetailsCmd displays certificate information and returns an error instead of exiting
Types ¶
type InteractiveMode ¶
type InteractiveMode struct {
// contains filtered or unexported fields
}
InteractiveMode enables interactive prompting for certificate generation
func NewInteractiveMode ¶
func NewInteractiveMode() *InteractiveMode
NewInteractiveMode creates a new interactive mode instance
func (*InteractiveMode) ConfirmGeneration ¶
func (im *InteractiveMode) ConfirmGeneration() bool
ConfirmGeneration asks for confirmation before generating certificate
func (*InteractiveMode) PromptCertificateType ¶
func (im *InteractiveMode) PromptCertificateType() string
PromptCertificateType prompts for certificate type (client, server, or both)
func (*InteractiveMode) PromptDNSNames ¶
func (im *InteractiveMode) PromptDNSNames() []string
PromptDNSNames prompts for DNS names (SANs)
func (*InteractiveMode) PromptEmailAddresses ¶
func (im *InteractiveMode) PromptEmailAddresses() []string
PromptEmailAddresses prompts for email addresses
func (*InteractiveMode) PromptExtendedKeyUsageOIDs ¶
func (im *InteractiveMode) PromptExtendedKeyUsageOIDs() []string
PromptExtendedKeyUsageOIDs prompts for custom Extended Key Usage OIDs
func (*InteractiveMode) PromptFileOutput ¶
func (im *InteractiveMode) PromptFileOutput(defaultName string) string
PromptFileOutput prompts for output file paths
func (*InteractiveMode) PromptIPAddresses ¶
func (im *InteractiveMode) PromptIPAddresses() []net.IP
PromptIPAddresses prompts for IP addresses (SANs)
func (*InteractiveMode) PromptInt ¶
func (im *InteractiveMode) PromptInt(prompt string, defaultValue int) int
PromptInt prompts for an integer value with optional default
func (*InteractiveMode) PromptKeyType ¶
func (im *InteractiveMode) PromptKeyType() string
func (*InteractiveMode) PromptString ¶
func (im *InteractiveMode) PromptString(prompt, defaultValue string) string
PromptString prompts for a string value with optional default
func (*InteractiveMode) PromptStringSlice ¶
func (im *InteractiveMode) PromptStringSlice(prompt string) []string
PromptStringSlice prompts for multiple string values (one per line, empty to finish)
func (*InteractiveMode) PromptSubjectInfo ¶
func (im *InteractiveMode) PromptSubjectInfo() map[string]string
PromptSubjectInfo prompts for subject information
func (*InteractiveMode) PromptValidity ¶
func (im *InteractiveMode) PromptValidity() int
PromptValidity prompts for certificate validity period
func (*InteractiveMode) PromptYesNo ¶
func (im *InteractiveMode) PromptYesNo(prompt string, defaultYes bool) bool
PromptYesNo prompts for yes/no confirmation
type MenuMode ¶
type MenuMode struct {
// contains filtered or unexported fields
}
MenuMode handles the main interactive menu interface
func (*MenuMode) DisplayMainMenu ¶
func (m *MenuMode) DisplayMainMenu()
DisplayMainMenu shows the main menu and handles command routing