Documentation ¶
Index ¶
- type AltNames
- type CA
- type CertRequest
- type Certificate
- type PrivateKey
- func (key *PrivateKey) CertificateFilepath() string
- func (key *PrivateKey) CertificateSign(cr *CertRequest) (*Certificate, error)
- func (key *PrivateKey) Filepath() string
- func (key *PrivateKey) IsNew() bool
- func (key *PrivateKey) PEM() []byte
- func (key *PrivateKey) Public() *PublicKey
- func (key *PrivateKey) PublicKeyFilepath() string
- func (key *PrivateKey) Save(keyFile string) error
- type PublicKey
- type PublicKeyRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
func (*CA) Certificate ¶
func (ca *CA) Certificate() *Certificate
type CertRequest ¶
type CertRequest struct { Name string CAName string CommonName string Organization []string Usages []x509.ExtKeyUsage AltNames AltNames PkiDir string Description string }
func (*CertRequest) LoadCA ¶
func (r *CertRequest) LoadCA() (*CA, error)
func (*CertRequest) PrivateKey ¶
func (r *CertRequest) PrivateKey() (*PrivateKey, error)
type Certificate ¶
type Certificate struct {
// contains filtered or unexported fields
}
func (*Certificate) PEM ¶
func (crt *Certificate) PEM() []byte
func (*Certificate) Save ¶
func (crt *Certificate) Save(certFile string) error
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func NewPrivateKey ¶
func NewPrivateKey() (*PrivateKey, error)
func (*PrivateKey) CertificateFilepath ¶
func (key *PrivateKey) CertificateFilepath() string
func (*PrivateKey) CertificateSign ¶
func (key *PrivateKey) CertificateSign(cr *CertRequest) (*Certificate, error)
func (*PrivateKey) Filepath ¶
func (key *PrivateKey) Filepath() string
func (*PrivateKey) IsNew ¶
func (key *PrivateKey) IsNew() bool
func (*PrivateKey) PEM ¶
func (key *PrivateKey) PEM() []byte
func (*PrivateKey) Public ¶
func (key *PrivateKey) Public() *PublicKey
func (*PrivateKey) PublicKeyFilepath ¶
func (key *PrivateKey) PublicKeyFilepath() string
func (*PrivateKey) Save ¶
func (key *PrivateKey) Save(keyFile string) error
type PublicKeyRequest ¶
func (*PublicKeyRequest) PrivateKey ¶
func (r *PublicKeyRequest) PrivateKey() (*PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.