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
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 ¶
Click to show internal directories.
Click to hide internal directories.