type crypto/tls.Certificate
50 uses
crypto/tls (current package)
auth.go#L172: func signatureSchemesForCertificate(version uint16, cert *Certificate) []SignatureScheme {
auth.go#L231: func selectSignatureScheme(vers uint16, c *Certificate, peerAlgs []SignatureScheme) (SignatureScheme, error) {
auth.go#L253: func unsupportedCertificateError(cert *Certificate) error {
cipher_suites.go#L119: generateServerKeyExchange(*Config, *Certificate, *clientHelloMsg, *serverHelloMsg) (*serverKeyExchangeMsg, error)
cipher_suites.go#L120: processClientKeyExchange(*Config, *Certificate, *clientKeyExchangeMsg, uint16) ([]byte, error)
common.go#L521: Certificates []Certificate
common.go#L530: NameToCertificate map[string]*Certificate
common.go#L539: GetCertificate func(*ClientHelloInfo) (*Certificate, error)
common.go#L554: GetClientCertificate func(*CertificateRequestInfo) (*Certificate, error)
common.go#L1014: func (c *Config) getCertificate(clientHello *ClientHelloInfo) (*Certificate, error) {
common.go#L1068: func (chi *ClientHelloInfo) SupportsCertificate(c *Certificate) error {
common.go#L1221: func (cri *CertificateRequestInfo) SupportsCertificate(c *Certificate) error {
common.go#L1258: c.NameToCertificate = make(map[string]*Certificate)
common.go#L1303: type Certificate struct {
common.go#L1327: func (c *Certificate) leaf() (*x509.Certificate, error) {
handshake_client.go#L536: var chainToSend *Certificate
handshake_client.go#L946: func (c *Conn) getClientCertificate(cri *CertificateRequestInfo) (*Certificate, error) {
handshake_client.go#L959: return new(Certificate), nil
handshake_messages.go#L1282: certificate Certificate
handshake_messages.go#L1311: func marshalCertificate(b *cryptobyte.Builder, certificate Certificate) {
handshake_messages.go#L1366: func unmarshalCertificate(s *cryptobyte.String, certificate *Certificate) bool {
handshake_server.go#L36: cert *Certificate
handshake_server.go#L439: if err := c.processCertsFromClient(Certificate{
handshake_server.go#L562: if err := c.processCertsFromClient(Certificate{
handshake_server.go#L771: func (c *Conn) processCertsFromClient(certificate Certificate) error {
handshake_server_tls13.go#L31: cert *Certificate
handshake_server_tls13.go#L745: certificate: Certificate{
key_agreement.go#L25: func (ka rsaKeyAgreement) generateServerKeyExchange(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg) (*serverKeyExchangeMsg, error) {
key_agreement.go#L29: func (ka rsaKeyAgreement) processClientKeyExchange(config *Config, cert *Certificate, ckx *clientKeyExchangeMsg, version uint16) ([]byte, error) {
key_agreement.go#L145: func (ka *ecdheKeyAgreement) generateServerKeyExchange(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg) (*serverKeyExchangeMsg, error) {
key_agreement.go#L234: func (ka *ecdheKeyAgreement) processClientKeyExchange(config *Config, cert *Certificate, ckx *clientKeyExchangeMsg, version uint16) ([]byte, error) {
ticket.go#L86: certificate Certificate // CertificateEntry certificate_list<0..2^24-1>;
tls.go#L261: func LoadX509KeyPair(certFile, keyFile string) (Certificate, error) {
tls.go#L264: return Certificate{}, err
tls.go#L268: return Certificate{}, err
tls.go#L276: func X509KeyPair(certPEMBlock, keyPEMBlock []byte) (Certificate, error) {
tls.go#L277: fail := func(err error) (Certificate, error) { return Certificate{}, err }
tls.go#L279: var cert Certificate
github.com/jackc/pgconn
config.go#L641: tlsConfig.Certificates = []tls.Certificate{cert}
github.com/lib/pq
ssl.go#L128: tlsConf.Certificates = []tls.Certificate{cert}
google.golang.org/api/internal
settings.go#L40: ClientCertSource func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
google.golang.org/api/option
option.go#L248: type ClientCertSource = func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
google.golang.org/api/transport/cert
default_cert.go#L40: type Source func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
default_cert.go#L97: func (s *secureConnectSource) getClientCertificate(info *tls.CertificateRequestInfo) (*tls.Certificate, error) {
google.golang.org/grpc/credentials
tls.go#L181: func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials {
tls.go#L182: return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}})
tls.go#L192: return NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}}), nil
net/http
server.go#L3045: config.Certificates = make([]tls.Certificate, 1)
net/http/httptest
server.go#L166: s.TLS.Certificates = []tls.Certificate{cert}
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |