Documentation
¶
Index ¶
- func ExportCertToPFX(pfxPath string, priv *rsa.PrivateKey, cert *x509.Certificate, password string) error
- func GenerateCertificate(outputPath, password string, details CertificateDetails, bits int) error
- func HandlePassword() (string, error)
- func HandleX509Generation(bits int) error
- func PromptPassword(label string) (string, error)
- type CertificateDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportCertToPFX ¶
func ExportCertToPFX(pfxPath string, priv *rsa.PrivateKey, cert *x509.Certificate, password string) error
ExportCertToPFX exports the certificate and private key to a PFX file.
func GenerateCertificate ¶
func GenerateCertificate(outputPath, password string, details CertificateDetails, bits int) error
GenerateCertificate generates an x509 certificate and stores it in the specified output path.
func HandlePassword ¶
HandlePassword handles prompting the user to enter and confirm a password.
func HandleX509Generation ¶
HandleX509Generation handles the entire process of generating an x509 certificate.
func PromptPassword ¶
PromptPassword prompts the user to enter a password with masking and validation.
Types ¶
Click to show internal directories.
Click to hide internal directories.