Documentation ¶
Index ¶
- Variables
- func LoadCertFromFile(filepath string) (*x509.Certificate, error)
- func NewCaCert(commonName string, name pkix.Name, opts ...CaCertOpt) (cert []byte, key []byte, err error)
- func NewGeneratedCsr(commonName string, name pkix.Name, opts ...CsrOpt) (csr []byte, priv []byte, err error)
- func PromptCertNameDetails() (pkix.Name, error)
- func ShowCertDetails(file string) error
- func SignCsr(csrFile, caCertFile, caKeyFile string, certType CertType) ([]byte, string, error)
- type CaCertOpt
- type CaCertOpts
- type CertType
- type CsrOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotACertificate = errors.New("the file is not in a known format or does not contain a certificate")
)
View Source
var (
ErrUserCancelled = errors.New("user cancelled input")
)
Functions ¶
func LoadCertFromFile ¶
func LoadCertFromFile(filepath string) (*x509.Certificate, error)
func NewGeneratedCsr ¶
func PromptCertNameDetails ¶
func ShowCertDetails ¶
Types ¶
type CaCertOpt ¶
type CaCertOpt func(opts *CaCertOpts)
func CaExpirationDays ¶
func CaExpirationMonths ¶
func CaIpAddress ¶
type CaCertOpts ¶
Click to show internal directories.
Click to hide internal directories.