grpc: google.golang.org/grpc/security/advancedtls/internal/testutils Index | Files

package testutils

import "google.golang.org/grpc/security/advancedtls/internal/testutils"

Package testutils contains helper functions for advancedtls.

Index

Package Files

testutils.go

type CertStore Uses

type CertStore struct {
    // ClientCert1 is the certificate sent by client to prove its identity.
    // It is trusted by ServerTrust1.
    ClientCert1 tls.Certificate
    // ClientCert2 is the certificate sent by client to prove its identity.
    // It is trusted by ServerTrust2.
    ClientCert2 tls.Certificate
    // ServerCert1 is the certificate sent by server to prove its identity.
    // It is trusted by ClientTrust1.
    ServerCert1 tls.Certificate
    // ServerCert2 is the certificate sent by server to prove its identity.
    // It is trusted by ClientTrust2.
    ServerCert2 tls.Certificate
    // ServerPeer3 is the certificate sent by server to prove its identity.
    ServerPeer3 tls.Certificate
    // ClientTrust1 is the root certificate used on the client side.
    ClientTrust1 *x509.CertPool
    // ClientTrust2 is the root certificate used on the client side.
    ClientTrust2 *x509.CertPool
    // ServerTrust1 is the root certificate used on the server side.
    ServerTrust1 *x509.CertPool
    // ServerTrust2 is the root certificate used on the server side.
    ServerTrust2 *x509.CertPool
}

CertStore contains all the certificates used in the integration tests.

func (*CertStore) LoadCerts Uses

func (cs *CertStore) LoadCerts() error

LoadCerts function is used to load test certificates at the beginning of each integration test.

Package testutils imports 5 packages (graph). Updated 2020-10-10. Refresh now. Tools for package owners.