Documentation
¶
Overview ¶
Package crypto provides the basis for secure communication in pluto. Other than defining proper TLS configurations for public as well as internal use, it also provides a script to set up major parts of a PKI used internally for secure and authenticated communication among the pluto nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInternalTLSConfig ¶
func NewInternalTLSConfig(certPath string, keyPath string, rootCertPath string) (*tls.Config, error)
NewInternalTLSConfig returns a TLS config that is already configured completely for use in nodes to communicate internally. It defines very strict defaults and requires all nodes to verify each other by TLS means.
func NewPublicTLSConfig ¶
NewPublicTLSConfig returns a TLS config that is to be used when exposing ports to the public Internet. It defines very strict defaults but assumes that available system cert pools will be used when verifying certificates.
Types ¶
This section is empty.