server

package
v0.0.0-...-3ed2260 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

type Authority struct {
	// The Signer that signs requests
	CA sign.Signer
	// The CA comment to emit on the PublicKey
	CaComment string

	// The duration to sign keys for
	Duration time.Duration

	IdentityHeader string
}

Authority is an SSH CA signing server

func (*Authority) PublicKey

func (s *Authority) PublicKey(ctx context.Context, r *shapes.KeyRequest) (*shapes.KeyResponse, error)

PublicKey returns the server's public key

func (*Authority) PublicKeyHTTP

func (a *Authority) PublicKeyHTTP(w http.ResponseWriter, r *http.Request)

PublicKeyHTTP is an endpoint for exporting the SSH public key of the CA server

func (*Authority) Sign

Sign handler for incoming certificate requests

func (*Authority) SignHTTP

func (a *Authority) SignHTTP(w http.ResponseWriter, r *http.Request)

SignHTTP is a handler for incoming certificate requests. Requests must contain an context that has an oidcauth email in the context

Jump to

Keyboard shortcuts

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