webca

package
v0.0.0-...-7ecefd1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = log.New(os.Stdout, "WebCA ", log.Ldate|log.Ltime|log.Lshortfile)

Functions

func IpMatch

func IpMatch(ip net.IP, allowed []string) bool

returns trye if ip address matches one from the allowed list

Types

type CertificateResponse

type CertificateResponse struct {
	Cert string `json:"cert"`
	Key  string `json:"key"`
}

type WebCa

type WebCa struct {
	Ca   *autoca.AutoCA
	Conf *config.Conf
}

func (*WebCa) CreateLocalCerts

func (webca *WebCa) CreateLocalCerts(certFile string, keyFile string)

func (*WebCa) Handle

func (webca *WebCa) Handle(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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