pkcs12util

package
v0.40.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// > openssl pkcs12 -export -in cert.pem -inkey "privateKey.pem" -certfile cert.pem -out myProject_keyAndCertBundle.p12
	OpenSSLCreateFormat = `openssl pkcs12 -export -in %v -inkey %v -certfile %v -out %v`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// use certificate.crt as the certificate the private key will be combined with.
	In string
	// use the private key file privateKey.key as the private key to combine with the certificate.
	InKey string
	// This is optional, this is if you have any additional certificates you would like to include in the PFX file.
	CertFile string
	// export and save the PFX file as certificate.pfx
	Out string
}

func (*Options) CreateCommand

func (opts *Options) CreateCommand() string

CreateP12File creates a PKCS 12/PFX file https://www.ssl.com/how-to/create-a-pfx-p12-certificate-file-using-openssl/

func (*Options) InfoCommand

func (opts *Options) InfoCommand() string

func (*Options) Stringify

func (opts *Options) Stringify(parts []string) string

func (*Options) TrimSpace

func (opts *Options) TrimSpace()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL