crypto/tls.Certificate.PrivateKey (field)
24 uses
crypto/tls (current package)
auth.go#L174: priv, ok := cert.PrivateKey.(crypto.Signer)
auth.go#L258: switch cert.PrivateKey.(type) {
auth.go#L261: cert.PrivateKey, cert.PrivateKey)
auth.go#L266: signer, ok := cert.PrivateKey.(crypto.Signer)
auth.go#L269: cert.PrivateKey)
auth.go#L292: return fmt.Errorf("tls: internal error: unsupported key (%T)", cert.PrivateKey)
common.go#L1286: if priv, ok := c.PrivateKey.(crypto.Decrypter); ok {
common.go#L1331: if priv, ok := c.PrivateKey.(crypto.Signer); ok {
common.go#L1488: PrivateKey crypto.PrivateKey
handshake_client.go#L782: key, ok := chainToSend.PrivateKey.(crypto.Signer)
handshake_client.go#L785: return fmt.Errorf("tls: client certificate private key of type %T does not implement crypto.Signer", chainToSend.PrivateKey)
handshake_client_tls13.go#L821: sig, err := cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server.go#L262: if priv, ok := hs.cert.PrivateKey.(crypto.Signer); ok {
handshake_server.go#L275: if priv, ok := hs.cert.PrivateKey.(crypto.Decrypter); ok {
handshake_server_tls13.go#L754: sig, err := hs.cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server_tls13.go#L756: public := hs.cert.PrivateKey.(crypto.Signer).Public()
key_agreement.go#L59: priv, ok := cert.PrivateKey.(crypto.Decrypter)
key_agreement.go#L200: priv, ok := cert.PrivateKey.(crypto.Signer)
key_agreement.go#L202: return nil, fmt.Errorf("tls: certificate private key of type %T does not implement crypto.Signer", cert.PrivateKey)
tls.go#L315: cert.PrivateKey, err = parsePrivateKey(keyDERBlock.Bytes)
tls.go#L322: priv, ok := cert.PrivateKey.(*rsa.PrivateKey)
tls.go#L330: priv, ok := cert.PrivateKey.(*ecdsa.PrivateKey)
tls.go#L338: priv, ok := cert.PrivateKey.(ed25519.PrivateKey)
 |
The pages are generated with Golds v0.7.6. (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. |