keystore

package
v9.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package keystore contains code to create and update keystores

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStore

type KeyStore struct {
	Filename string
	Password string
	// contains filtered or unexported fields
}

KeyStore describes information about a keystore file

func NewCMSKeyStore

func NewCMSKeyStore(filename, password string) *KeyStore

NewCMSKeyStore creates a new MQ CMS Key Store, managed by the runmqakm command

func NewJKSKeyStore

func NewJKSKeyStore(filename, password string) *KeyStore

NewJKSKeyStore creates a new Java Key Store, managed by the runmqckm command

func NewPKCS12KeyStore

func NewPKCS12KeyStore(filename, password string) *KeyStore

NewPKCS12KeyStore creates a new PKCS12 Key Store, managed by the runmqakm command

func (*KeyStore) Add

func (ks *KeyStore) Add(inputFile, label string) error

Add adds a CA certificate to the keystore

func (*KeyStore) AddNoLabel

func (ks *KeyStore) AddNoLabel(inputFile string) error

Add adds a CA certificate to the keystore

func (*KeyStore) Create

func (ks *KeyStore) Create() error

Create a key store, if it doesn't already exist

func (*KeyStore) CreateSelfSignedCertificate

func (ks *KeyStore) CreateSelfSignedCertificate(label, dn, hostname string) error

CreateSelfSignedCertificate creates a self-signed certificate in the keystore

func (*KeyStore) CreateStash

func (ks *KeyStore) CreateStash() error

CreateStash creates a key stash, if it doesn't already exist

func (*KeyStore) GetCertificateLabels

func (ks *KeyStore) GetCertificateLabels() ([]string, error)

GetCertificateLabels returns the labels of all certificates in the key store

func (*KeyStore) Import

func (ks *KeyStore) Import(inputFile, password string) error

Import imports a certificate file in the keystore

func (*KeyStore) ListAllCertificates

func (ks *KeyStore) ListAllCertificates() ([]string, error)

ListAllCertificates Lists all certificates in the keystore

func (*KeyStore) RenameCertificate

func (ks *KeyStore) RenameCertificate(from, to string) error

RenameCertificate renames the specified certificate

Jump to

Keyboard shortcuts

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