dummycertbuilder

package module
v0.0.0-...-e2ce6d0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2016 License: BSD-3-Clause Imports: 10 Imported by: 0

README

DummyCertBuilder

This package provides a way to build a dummy self-signed TLS certificate. It is intentionally providing insecure certificates.

It's based on crypto/tls/generate_cert.go, which you should refer to for a better example on how to do this.

Documentation: http://godoc.org/badc0de.net/pkg/dummycertbuilder

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDummyCert

func BuildDummyCert() tls.Certificate

Returns a new dummy certificate.

func GetDummyCert

func GetDummyCert() tls.Certificate

Returns a dummy certificate. Future updates might provide a constant dummy certificate instead.

Types

type ConstantReader

type ConstantReader struct{}

Provides a stream of bytes which is constant and predictable.

Currently, bytes linearly increasing by 1 in range 0-min(len(p), 255).

func (ConstantReader) Read

func (ConstantReader) Read(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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