easytls

package module
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 4 Imported by: 2

README

easy-tls

A set of packages for quickly and easily developing TLS-enabled Web Servers and Clients.

Documentation

Overview

Package easytls and the rest of this library is intended to provide a simple interface for creating simple HTTP(S) Client/Server applications.

This package provides a mechanism for preparing the tls.Config object of an http.Client or http.Server with common levels of enablement. The TLSBundle object intends to simplify preparing and understanding what components are necessary in a standard TLS setup, instead of needing to understand the full settings of the tls.Config struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSConfig

func NewTLSConfig(TLS *TLSBundle) (*tls.Config, error)

NewTLSConfig will convert the TLSBundle, containing the filenames of the relevant certificates and Authorization policy, into a workable tls.Config object, ready to be used by either a SimpleClient or SimpleServer application.

Types

type KeyPair

type KeyPair struct {
	Certificate string
	Key         string
}

KeyPair represents the filenames to a pair of matching TLS Key/Certificate files. This can be either a Server-side or Client-side Certificate/Key pair.

type TLSBundle

type TLSBundle struct {
	AuthorityCertificates []string
	KeyPair               KeyPair
	Auth                  tls.ClientAuthType
	Enabled               bool `json:"-"`
}

TLSBundle represents the set of TLS information required to generate a satisfactory tls.Config struct.

Directories

Path Synopsis
Package client implements a minor extension of the default http.Client.
Package client implements a minor extension of the default http.Client.
examples
example-client-plugin
This module represents a ...
This module represents a ...
example-server-framework
This package implements a minimalist example of a Server-Side Framework, using the EasyTLS library.
This package implements a minimalist example of a Server-Side Framework, using the EasyTLS library.
example-server-plugin
This command represents a...
This command represents a...
Package proxy implements the extensions to a SimpleServer necessary to implement a full HTTP(S) Reverse Proxy.
Package proxy implements the extensions to a SimpleServer necessary to implement a full HTTP(S) Reverse Proxy.
rule-editor
Command rule-editor implements a basic command-line utility for managing an EasyTLS Proxy Rules file.
Command rule-editor implements a basic command-line utility for managing an EasyTLS Proxy Rules file.
Package server implements a minor extension of the standard http.Server struct.
Package server implements a minor extension of the standard http.Server struct.

Jump to

Keyboard shortcuts

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