Documentation
¶
Index ¶
- Variables
- func MarshalJSONCert(cert *x509.Certificate) ([]byte, error)
- func SelfSigned(domain string) (tls.Certificate, *x509.CertPool, 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) Encode(certOut io.Writer, keyOut io.Writer) error
- func (c *Cert) EncodeToMemory() ([]byte, []byte, error)
- func (c *Cert) NewClient(opts CertOpts) (*Cert, error)
- func (c *Cert) NewIntermediate(opts CertOpts) (*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
Country: []string{"US"}, Organization: []string{"Connet"}, }
Functions ¶
func MarshalJSONCert ¶
func MarshalJSONCert(cert *x509.Certificate) ([]byte, error)
func SelfSigned ¶
func UnmarshalJSONCert ¶
func UnmarshalJSONCert(b []byte) (*x509.Certificate, error)
Types ¶
type Cert ¶
type Cert struct {
// contains filtered or unexported fields
}
func DecodeFromMemory ¶
func FromTLS ¶
func FromTLS(tlsCert tls.Certificate) *Cert
Click to show internal directories.
Click to hide internal directories.