Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPKCS1Key ¶
func LoadPKCS1Key(in io.Reader) (*rsa.PrivateKey, error)
func LoadPKCS1KeyFile ¶
func LoadPKCS1KeyFile(keyFile string) (*rsa.PrivateKey, error)
Types ¶
type Certificate ¶
type Certificate struct {
// contains filtered or unexported fields
}
func NewSelfSignedCertificate ¶
func NewSelfSignedCertificate(key *rsa.PrivateKey, isCA bool, ipAddresses []net.IP) (Certificate, error)
func NewSignedCertificate ¶
func NewSignedCertificate(parent Certificate, ipAddress []net.IP) (Certificate, error)
func (*Certificate) MarshalCertificate ¶ added in v1.5.1
func (cert *Certificate) MarshalCertificate(out io.Writer) error
func (*Certificate) MarshalPrivateKey ¶
func (cert *Certificate) MarshalPrivateKey(out io.Writer) error
type UserKey ¶ added in v1.5.0
type UserKey struct {
// contains filtered or unexported fields
}
func LoadUserKey ¶ added in v1.5.0
func (*UserKey) PrivateKey ¶ added in v1.5.0
func (u *UserKey) PrivateKey() *rsa.PrivateKey
Click to show internal directories.
Click to hide internal directories.