boulder: github.com/letsencrypt/boulder/grpc/creds Index | Files

package creds

import "github.com/letsencrypt/boulder/grpc/creds"

Index

Package Files

creds.go

Variables

var (
    ErrClientHandshakeNop = errors.New(
        "boulder/grpc/creds: Client-side handshakes are not implemented with " +
            "serverTransportCredentials")
    ErrServerHandshakeNop = errors.New(
        "boulder/grpc/creds: Server-side handshakes are not implemented with " +
            "clientTransportCredentials")
    ErrOverrideServerNameNop = errors.New(
        "boulder/grpc/creds: OverrideServerName() is not implemented")
    ErrNilServerConfig = errors.New(
        "boulder/grpc/creds: `serverConfig` must not be nil")
    ErrEmptyPeerCerts = errors.New(
        "boulder/grpc/creds: validateClient given state with empty PeerCertificates")
)

func NewClientCredentials Uses

func NewClientCredentials(rootCAs *x509.CertPool, clientCerts []tls.Certificate, hostOverride string) credentials.TransportCredentials

NewClientCredentials returns a new initialized grpc/credentials.TransportCredentials for client usage

func NewServerCredentials Uses

func NewServerCredentials(serverConfig *tls.Config, acceptedSANs map[string]struct{}) (credentials.TransportCredentials, error)

NewServerCredentials returns a new initialized grpc/credentials.TransportCredentials for server usage

type ErrSANNotAccepted Uses

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

func (ErrSANNotAccepted) Error Uses

func (e ErrSANNotAccepted) Error() string

Package creds imports 7 packages (graph) and is imported by 22 packages. Updated 2020-04-22. Refresh now. Tools for package owners.