auth

package
v0.0.0-...-5bd6613 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSConfig

func NewTLSConfig(pemFiles PemFiles) (*tls.Config, error)

NewTLSConfig generates a TLS configuration used to authenticate on server with certificates. Parameter is a struct containing three pem file path: client cert, client key and CA cert.

Types

type PemFiles

type PemFiles struct {
	ClientCert string
	ClientKey  string
	CACert     string
}

Jump to

Keyboard shortcuts

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