Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissPrivateKey = errors.New("certificate: private key miss") ErrMissPublicKey = errors.New("certificate: public key miss") ErrNotEffective = errors.New("certificate: is not effective yet") ErrExpired = errors.New("certificate: has been expired") ErrKeyPairTypeNotMatch = errors.New("certificate: private key type does not match public key type") ErrKeyPairNotMatch = errors.New("certificate: private key does not match public key") ErrUnknownPublicKeyAlgorithm = errors.New("certificate: unknown public key algorithm") ErrUnknownPrivateKeyType = errors.New("certificate: unknown private key type") )
Functions ¶
func GetCertificate ¶
func GetCertificate(data []byte) (*tls.Certificate, error)
func GetCertificateBytes ¶
func GetCertificateBytes(tlscert *tls.Certificate) ([]byte, error)
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ServerOptions) *Server
type ServerOptions ¶
Click to show internal directories.
Click to hide internal directories.