Documentation
¶
Overview ¶
Package keystore contains code to create and update keystores
Index ¶
- type KeyStore
- func (ks *KeyStore) Add(inputFile, label string) error
- func (ks *KeyStore) AddNoLabel(inputFile string) error
- func (ks *KeyStore) Create() error
- func (ks *KeyStore) CreateSelfSignedCertificate(label, dn, hostname string) error
- func (ks *KeyStore) CreateStash() error
- func (ks *KeyStore) GetCertificateLabels() ([]string, error)
- func (ks *KeyStore) Import(inputFile, password string) error
- func (ks *KeyStore) ListAllCertificates() ([]string, error)
- func (ks *KeyStore) RenameCertificate(from, to string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyStore ¶
KeyStore describes information about a keystore file
func NewCMSKeyStore ¶
NewCMSKeyStore creates a new MQ CMS Key Store, managed by the runmqakm command
func NewJKSKeyStore ¶
NewJKSKeyStore creates a new Java Key Store, managed by the runmqckm command
func NewPKCS12KeyStore ¶
NewPKCS12KeyStore creates a new PKCS12 Key Store, managed by the runmqakm command
func (*KeyStore) AddNoLabel ¶
Add adds a CA certificate to the keystore
func (*KeyStore) CreateSelfSignedCertificate ¶
CreateSelfSignedCertificate creates a self-signed certificate in the keystore
func (*KeyStore) CreateStash ¶
CreateStash creates a key stash, if it doesn't already exist
func (*KeyStore) GetCertificateLabels ¶
GetCertificateLabels returns the labels of all certificates in the key store
func (*KeyStore) ListAllCertificates ¶
ListAllCertificates Lists all certificates in the keystore
func (*KeyStore) RenameCertificate ¶
RenameCertificate renames the specified certificate