server

package
v0.0.0-...-ea75db1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package server wraps http.ListenAndServeTLS such that it generates self signed certificates on the fly automatically

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServeTLS

func ListenAndServeTLS(addr string, handler http.Handler, p *certgen.CertParams) error

ListenAndServeTLS creates a new server like http.ListenAndServeTLS but creates a self-signed certificate on the fly. Warning: Since it's not a trusted certificate chain, the golang http-server will log

http2: server: error reading preface...

when connecting to the server.

If p is nil the Default Parameters (RSA2048, Valid from now for 365 days) will be used for the certificate generation

Types

This section is empty.

Jump to

Keyboard shortcuts

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