certs

package
v0.0.0-...-6147292 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package certs provides helper libraries for generating self-signed certificates, which we use locally for authorizing users to read packet data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientVerifyingTLSConfig

func ClientVerifyingTLSConfig(certFile string) (*tls.Config, error)

ClientVerifyingTLSConfig returns a TLS config which verifies that clients have a certificate signed by the CA certificate in the certFile.

func WriteNewCerts

func WriteNewCerts(certFile, keyFile string, server bool) error

WriteNewCerts generates a self-signed certificate pair for use in locally authorizing clients. If 'server' is true, it writes out certs which can be used to verify the server, otherwise it writes out certs clients can use to authorize themselves to the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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