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
- type Key
Constants ¶
This section is empty.
Variables ¶
View Source
string{"US"}, Organization: []string{"Connet"}, }Country: []
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
type Key ¶
type Key struct { // contains filtered or unexported fields } // TODO move to model
func NewKey ¶
func NewKey(cert *x509.Certificate) Key
func NewKeyString ¶
func NewKeyTLS ¶
func NewKeyTLS(cert tls.Certificate) Key
func (Key) MarshalText ¶
func (*Key) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.