crypto

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

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

func NewPublicTLSConfig(certPath string, keyPath string) (*tls.Config, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL