crypto/tls.Config.Certificates (field)
17 uses
crypto/tls (current package)
common.go#L588: Certificates []Certificate
common.go#L1005: Certificates: c.Certificates,
common.go#L1319: (len(c.Certificates) == 0 || len(clientHello.ServerName) > 0) {
common.go#L1326: if len(c.Certificates) == 0 {
common.go#L1330: if len(c.Certificates) == 1 {
common.go#L1332: return &c.Certificates[0], nil
common.go#L1350: for _, cert := range c.Certificates {
common.go#L1357: return &c.Certificates[0], nil
common.go#L1566: for i := range c.Certificates {
common.go#L1567: cert := &c.Certificates[i]
handshake_client.go#L553: if isResume || (len(c.config.Certificates) == 0 && c.config.GetClientCertificate == nil) {
handshake_client.go#L1269: for _, chain := range c.config.Certificates {
tls.go#L102: if config == nil || len(config.Certificates) == 0 &&
net/http
server.go#L3492: configHasCert := len(config.Certificates) > 0 || config.GetCertificate != nil || config.GetConfigForClient != nil
server.go#L3495: config.Certificates = make([]tls.Certificate, 1)
server.go#L3496: config.Certificates[0], err = tls.LoadX509KeyPair(certFile, keyFile)
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |