Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { CAPrivateKey *ecdsa.PrivateKey CADer []byte CA *x509.Certificate ClientRandSeed [32]byte Client map[string]*tls.Certificate sync.RWMutex }
func NewServerDeterministic ¶
NewServerDeterministic creates the certificate with an deterministic key, it always creates the same certificate/key using the same `seed`.
func (*Server) CreateClientCertDomain ¶
func (*Server) CreateClientCertIP ¶
func (*Server) TLSGetCertificate ¶
func (s *Server) TLSGetCertificate(info *tls.ClientHelloInfo) (*tls.Certificate, error)
It's supposed to be used inside the `TLSConfig` as such:
CERTSERVER := inkcert.NewServer(nil, nil) http.Server{ TLSConfig: &tls.Config{ GetCertificate: CERTSERVER.TLSGetCertificate, }
Click to show internal directories.
Click to hide internal directories.