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) MarshalCertficate ¶
func (cert *Certificate) MarshalCertficate(out io.Writer) error
func (*Certificate) MarshalPrivateKey ¶
func (cert *Certificate) MarshalPrivateKey(out io.Writer) error
Click to show internal directories.
Click to hide internal directories.