Documentation
¶
Index ¶
- Variables
- func MarshalJSONCert(cert *x509.Certificate) ([]byte, error)
- func UnmarshalJSONCert(b []byte) (*x509.Certificate, error)
- type Cert
- func (c *Cert) Cert() (*x509.Certificate, error)
- func (c *Cert) CertPool() (*x509.CertPool, error)
- func (c *Cert) EncodeToMemory() ([]byte, []byte, error)
- func (c *Cert) NewClient() (*Cert, error)
- func (c *Cert) NewServer(opts CertOpts) (*Cert, error)
- func (c *Cert) Raw() []byte
- func (c *Cert) TLSCert() (tls.Certificate, error)
- type CertOpts
- type Key
Constants ¶
This section is empty.
Variables ¶
View Source
CommonName: "connet",
}
Functions ¶
func MarshalJSONCert ¶
func MarshalJSONCert(cert *x509.Certificate) ([]byte, error)
func UnmarshalJSONCert ¶
func UnmarshalJSONCert(b []byte) (*x509.Certificate, error)
Types ¶
type Key ¶ added in v0.15.0
type Key struct {
// contains filtered or unexported fields
}
func NewKey ¶ added in v0.15.0
func NewKey(cert *x509.Certificate) Key
func NewKeyString ¶ added in v0.15.0
func (Key) MarshalText ¶ added in v0.15.0
func (*Key) UnmarshalText ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.