ssl

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertCache

type CertCache struct {
	// contains filtered or unexported fields
}

func NewCertCache

func NewCertCache(bs interfaces.Blobstore) *CertCache

func (*CertCache) Delete

func (c *CertCache) Delete(ctx context.Context, key string) error

func (*CertCache) Get

func (c *CertCache) Get(ctx context.Context, key string) ([]byte, error)

func (*CertCache) Put

func (c *CertCache) Put(ctx context.Context, key string, data []byte) error

type SSLService

type SSLService struct {
	AuthorityCert *x509.Certificate
	AuthorityKey  *rsa.PrivateKey
	// contains filtered or unexported fields
}

func NewSSLService

func NewSSLService(env environment.Env) (*SSLService, error)

func (*SSLService) ConfigureTLS

func (s *SSLService) ConfigureTLS(mux http.Handler) (*tls.Config, http.Handler)

func (*SSLService) GenerateCerts

func (s *SSLService) GenerateCerts(apiKey string) (string, string, error)

func (*SSLService) GetGRPCSTLSCreds

func (s *SSLService) GetGRPCSTLSCreds() (credentials.TransportCredentials, error)

func (*SSLService) IsCertGenerationEnabled

func (s *SSLService) IsCertGenerationEnabled() bool

func (*SSLService) IsEnabled

func (s *SSLService) IsEnabled() bool

Jump to

Keyboard shortcuts

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