crypto/tls.Config.Certificates (field)
24 uses
crypto/tls (current package)
common.go#L521: Certificates []Certificate
common.go#L756: Certificates: c.Certificates,
common.go#L1016: (len(c.Certificates) == 0 || len(clientHello.ServerName) > 0) {
common.go#L1023: if len(c.Certificates) == 0 {
common.go#L1027: if len(c.Certificates) == 1 {
common.go#L1029: return &c.Certificates[0], nil
common.go#L1047: for _, cert := range c.Certificates {
common.go#L1054: return &c.Certificates[0], nil
common.go#L1259: for i := range c.Certificates {
common.go#L1260: cert := &c.Certificates[i]
handshake_client.go#L385: if isResume || (len(c.config.Certificates) == 0 && c.config.GetClientCertificate == nil) {
handshake_client.go#L951: for _, chain := range c.config.Certificates {
tls.go#L90: if config == nil || len(config.Certificates) == 0 &&
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/grpc/credentials
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#L3042: configHasCert := len(config.Certificates) > 0 || config.GetCertificate != nil
server.go#L3045: config.Certificates = make([]tls.Certificate, 1)
server.go#L3046: config.Certificates[0], err = tls.LoadX509KeyPair(certFile, keyFile)
net/http/httptest
server.go#L165: if len(s.TLS.Certificates) == 0 {
server.go#L166: s.TLS.Certificates = []tls.Certificate{cert}
server.go#L168: s.certificate, err = x509.ParseCertificate(s.TLS.Certificates[0].Certificate[0])
 |
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. |