Documentation ¶
Index ¶
- Constants
- func EncodeFile(f FileType, cert *CertificateBundle) ([]byte, error)
- func FormatVaultKey(vault Vault) string
- type CertificateBundle
- type FileType
- type FileTypeChain
- func (f FileTypeChain) ContainsCert() bool
- func (f FileTypeChain) ContainsPrivateKey() bool
- func (f FileTypeChain) ContainsStapling() bool
- func (f FileTypeChain) Label() string
- func (f FileTypeChain) Password() string
- func (f FileTypeChain) Suffix() string
- func (f FileTypeChain) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeChainAndRoot
- func (f FileTypeChainAndRoot) ContainsCert() bool
- func (f FileTypeChainAndRoot) ContainsPrivateKey() bool
- func (f FileTypeChainAndRoot) ContainsStapling() bool
- func (f FileTypeChainAndRoot) Label() string
- func (f FileTypeChainAndRoot) Password() string
- func (f FileTypeChainAndRoot) Suffix() string
- func (f FileTypeChainAndRoot) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeChained
- func (f FileTypeChained) ContainsCert() bool
- func (f FileTypeChained) ContainsPrivateKey() bool
- func (f FileTypeChained) ContainsStapling() bool
- func (f FileTypeChained) Label() string
- func (f FileTypeChained) Password() string
- func (f FileTypeChained) Suffix() string
- func (f FileTypeChained) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeCombined
- func (f FileTypeCombined) ContainsCert() bool
- func (f FileTypeCombined) ContainsPrivateKey() bool
- func (f FileTypeCombined) ContainsStapling() bool
- func (f FileTypeCombined) Label() string
- func (f FileTypeCombined) Password() string
- func (f FileTypeCombined) Suffix() string
- func (f FileTypeCombined) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeJks
- func (f FileTypeJks) ContainsCert() bool
- func (f FileTypeJks) ContainsPrivateKey() bool
- func (f FileTypeJks) ContainsStapling() bool
- func (f FileTypeJks) Label() string
- func (f FileTypeJks) Password() string
- func (f FileTypeJks) Suffix() string
- func (f FileTypeJks) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeKey
- func (f FileTypeKey) ContainsCert() bool
- func (f FileTypeKey) ContainsPrivateKey() bool
- func (f FileTypeKey) ContainsStapling() bool
- func (f FileTypeKey) Label() string
- func (f FileTypeKey) Password() string
- func (f FileTypeKey) Suffix() string
- func (f FileTypeKey) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeLeaf
- func (f FileTypeLeaf) ContainsCert() bool
- func (f FileTypeLeaf) ContainsPrivateKey() bool
- func (f FileTypeLeaf) ContainsStapling() bool
- func (f FileTypeLeaf) Label() string
- func (f FileTypeLeaf) Password() string
- func (f FileTypeLeaf) Suffix() string
- func (f FileTypeLeaf) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeP12
- func (f FileTypeP12) ContainsCert() bool
- func (f FileTypeP12) ContainsPrivateKey() bool
- func (f FileTypeP12) ContainsStapling() bool
- func (f FileTypeP12) Label() string
- func (f FileTypeP12) Password() string
- func (f FileTypeP12) Suffix() string
- func (f FileTypeP12) Write(writer io.Writer, bundle *CertificateBundle) error
- type FileTypeRoot
- func (f FileTypeRoot) ContainsCert() bool
- func (f FileTypeRoot) ContainsPrivateKey() bool
- func (f FileTypeRoot) ContainsStapling() bool
- func (f FileTypeRoot) Label() string
- func (f FileTypeRoot) Password() string
- func (f FileTypeRoot) Suffix() string
- func (f FileTypeRoot) Write(writer io.Writer, bundle *CertificateBundle) error
- type NaclSecretBox
- func (vault *NaclSecretBox) APIKey() []byte
- func (vault *NaclSecretBox) CanDecrypt() bool
- func (vault *NaclSecretBox) Decrypt(ciphertext []byte) ([]byte, error)
- func (vault *NaclSecretBox) Encrypt(message []byte) []byte
- func (vault *NaclSecretBox) Fingerprint() util.SHA256Digest
- func (vault *NaclSecretBox) PrivateKey() []byte
- func (vault *NaclSecretBox) PublicKey() []byte
- func (vault *NaclSecretBox) Type() string
- type OrderBundle
- type Vault
Constants ¶
View Source
const NACL_SECRET_BOX_KEY_LEN = 32
Variables ¶
This section is empty.
Functions ¶
func EncodeFile ¶
func EncodeFile(f FileType, cert *CertificateBundle) ([]byte, error)
Types ¶
type CertificateBundle ¶
type CertificateBundle struct { Identifiers []util.Identifier KeyType util.KeyType Key []byte Leaf []byte Chain [][]byte Root []byte IssueTime time.Time }
func GetTemporaryCert ¶
func GetTemporaryCert(keyType util.KeyType, identifiers []util.Identifier, filename string, fileperms util.FilePerms) (*CertificateBundle, error)
func (*CertificateBundle) Fingerprint ¶
func (bundle *CertificateBundle) Fingerprint() []byte
type FileType ¶
type FileTypeChain ¶
type FileTypeChain struct{}
func (FileTypeChain) ContainsCert ¶
func (f FileTypeChain) ContainsCert() bool
func (FileTypeChain) ContainsPrivateKey ¶
func (f FileTypeChain) ContainsPrivateKey() bool
func (FileTypeChain) ContainsStapling ¶
func (f FileTypeChain) ContainsStapling() bool
func (FileTypeChain) Label ¶
func (f FileTypeChain) Label() string
func (FileTypeChain) Password ¶
func (f FileTypeChain) Password() string
func (FileTypeChain) Suffix ¶
func (f FileTypeChain) Suffix() string
func (FileTypeChain) Write ¶
func (f FileTypeChain) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeChainAndRoot ¶
type FileTypeChainAndRoot struct{}
func (FileTypeChainAndRoot) ContainsCert ¶
func (f FileTypeChainAndRoot) ContainsCert() bool
func (FileTypeChainAndRoot) ContainsPrivateKey ¶
func (f FileTypeChainAndRoot) ContainsPrivateKey() bool
func (FileTypeChainAndRoot) ContainsStapling ¶
func (f FileTypeChainAndRoot) ContainsStapling() bool
func (FileTypeChainAndRoot) Label ¶
func (f FileTypeChainAndRoot) Label() string
func (FileTypeChainAndRoot) Password ¶
func (f FileTypeChainAndRoot) Password() string
func (FileTypeChainAndRoot) Suffix ¶
func (f FileTypeChainAndRoot) Suffix() string
func (FileTypeChainAndRoot) Write ¶
func (f FileTypeChainAndRoot) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeChained ¶
type FileTypeChained struct{}
func (FileTypeChained) ContainsCert ¶
func (f FileTypeChained) ContainsCert() bool
func (FileTypeChained) ContainsPrivateKey ¶
func (f FileTypeChained) ContainsPrivateKey() bool
func (FileTypeChained) ContainsStapling ¶
func (f FileTypeChained) ContainsStapling() bool
func (FileTypeChained) Label ¶
func (f FileTypeChained) Label() string
func (FileTypeChained) Password ¶
func (f FileTypeChained) Password() string
func (FileTypeChained) Suffix ¶
func (f FileTypeChained) Suffix() string
func (FileTypeChained) Write ¶
func (f FileTypeChained) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeCombined ¶
type FileTypeCombined struct{}
func (FileTypeCombined) ContainsCert ¶
func (f FileTypeCombined) ContainsCert() bool
func (FileTypeCombined) ContainsPrivateKey ¶
func (f FileTypeCombined) ContainsPrivateKey() bool
func (FileTypeCombined) ContainsStapling ¶
func (f FileTypeCombined) ContainsStapling() bool
func (FileTypeCombined) Label ¶
func (f FileTypeCombined) Label() string
func (FileTypeCombined) Password ¶
func (f FileTypeCombined) Password() string
func (FileTypeCombined) Suffix ¶
func (f FileTypeCombined) Suffix() string
func (FileTypeCombined) Write ¶
func (f FileTypeCombined) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeJks ¶
type FileTypeJks struct{}
func (FileTypeJks) ContainsCert ¶
func (f FileTypeJks) ContainsCert() bool
func (FileTypeJks) ContainsPrivateKey ¶
func (f FileTypeJks) ContainsPrivateKey() bool
func (FileTypeJks) ContainsStapling ¶
func (f FileTypeJks) ContainsStapling() bool
func (FileTypeJks) Label ¶
func (f FileTypeJks) Label() string
func (FileTypeJks) Password ¶
func (f FileTypeJks) Password() string
func (FileTypeJks) Suffix ¶
func (f FileTypeJks) Suffix() string
func (FileTypeJks) Write ¶
func (f FileTypeJks) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeKey ¶
type FileTypeKey struct{}
func (FileTypeKey) ContainsCert ¶
func (f FileTypeKey) ContainsCert() bool
func (FileTypeKey) ContainsPrivateKey ¶
func (f FileTypeKey) ContainsPrivateKey() bool
func (FileTypeKey) ContainsStapling ¶
func (f FileTypeKey) ContainsStapling() bool
func (FileTypeKey) Label ¶
func (f FileTypeKey) Label() string
func (FileTypeKey) Password ¶
func (f FileTypeKey) Password() string
func (FileTypeKey) Suffix ¶
func (f FileTypeKey) Suffix() string
func (FileTypeKey) Write ¶
func (f FileTypeKey) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeLeaf ¶
type FileTypeLeaf struct{}
func (FileTypeLeaf) ContainsCert ¶
func (f FileTypeLeaf) ContainsCert() bool
func (FileTypeLeaf) ContainsPrivateKey ¶
func (f FileTypeLeaf) ContainsPrivateKey() bool
func (FileTypeLeaf) ContainsStapling ¶
func (f FileTypeLeaf) ContainsStapling() bool
func (FileTypeLeaf) Label ¶
func (f FileTypeLeaf) Label() string
func (FileTypeLeaf) Password ¶
func (f FileTypeLeaf) Password() string
func (FileTypeLeaf) Suffix ¶
func (f FileTypeLeaf) Suffix() string
func (FileTypeLeaf) Write ¶
func (f FileTypeLeaf) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeP12 ¶
type FileTypeP12 struct{}
func (FileTypeP12) ContainsCert ¶
func (f FileTypeP12) ContainsCert() bool
func (FileTypeP12) ContainsPrivateKey ¶
func (f FileTypeP12) ContainsPrivateKey() bool
func (FileTypeP12) ContainsStapling ¶
func (f FileTypeP12) ContainsStapling() bool
func (FileTypeP12) Label ¶
func (f FileTypeP12) Label() string
func (FileTypeP12) Password ¶
func (f FileTypeP12) Password() string
func (FileTypeP12) Suffix ¶
func (f FileTypeP12) Suffix() string
func (FileTypeP12) Write ¶
func (f FileTypeP12) Write(writer io.Writer, bundle *CertificateBundle) error
type FileTypeRoot ¶
type FileTypeRoot struct{}
func (FileTypeRoot) ContainsCert ¶
func (f FileTypeRoot) ContainsCert() bool
func (FileTypeRoot) ContainsPrivateKey ¶
func (f FileTypeRoot) ContainsPrivateKey() bool
func (FileTypeRoot) ContainsStapling ¶
func (f FileTypeRoot) ContainsStapling() bool
func (FileTypeRoot) Label ¶
func (f FileTypeRoot) Label() string
func (FileTypeRoot) Password ¶
func (f FileTypeRoot) Password() string
func (FileTypeRoot) Suffix ¶
func (f FileTypeRoot) Suffix() string
func (FileTypeRoot) Write ¶
func (f FileTypeRoot) Write(writer io.Writer, bundle *CertificateBundle) error
type NaclSecretBox ¶
type NaclSecretBox struct {
// contains filtered or unexported fields
}
func DecodeNaclSecretBoxKey ¶
func DecodeNaclSecretBoxKey(keyData []byte) (*NaclSecretBox, error)
func GenerateNaclSecretBox ¶
func GenerateNaclSecretBox() (*NaclSecretBox, error)
func (*NaclSecretBox) APIKey ¶
func (vault *NaclSecretBox) APIKey() []byte
func (*NaclSecretBox) CanDecrypt ¶
func (vault *NaclSecretBox) CanDecrypt() bool
func (*NaclSecretBox) Decrypt ¶
func (vault *NaclSecretBox) Decrypt(ciphertext []byte) ([]byte, error)
func (*NaclSecretBox) Encrypt ¶
func (vault *NaclSecretBox) Encrypt(message []byte) []byte
func (*NaclSecretBox) Fingerprint ¶
func (vault *NaclSecretBox) Fingerprint() util.SHA256Digest
func (*NaclSecretBox) PrivateKey ¶
func (vault *NaclSecretBox) PrivateKey() []byte
func (*NaclSecretBox) PublicKey ¶
func (vault *NaclSecretBox) PublicKey() []byte
func (*NaclSecretBox) Type ¶
func (vault *NaclSecretBox) Type() string
type OrderBundle ¶
type OrderBundle struct { Name string Identifiers []util.Identifier KeyType util.KeyType Certificate *CertificateBundle // nil if certificate not issued yet RefreshError error // nil if there was no error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.