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#L1206: 		if priv, ok := c.PrivateKey.(crypto.Decrypter); ok {
		common.go#L1251: 	if priv, ok := c.PrivateKey.(crypto.Signer); ok {
		common.go#L1408: 	PrivateKey crypto.PrivateKey
		handshake_client.go#L670: 		key, ok := chainToSend.PrivateKey.(crypto.Signer)
		handshake_client.go#L673: 			return fmt.Errorf("tls: client certificate private key of type %T does not implement crypto.Signer", chainToSend.PrivateKey)
		handshake_client_tls13.go#L680: 	sig, err := cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
		handshake_server.go#L256: 	if priv, ok := hs.cert.PrivateKey.(crypto.Signer); ok {
		handshake_server.go#L269: 	if priv, ok := hs.cert.PrivateKey.(crypto.Decrypter); ok {
		handshake_server_tls13.go#L707: 	sig, err := hs.cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
		handshake_server_tls13.go#L709: 		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#L299: 	cert.PrivateKey, err = parsePrivateKey(keyDERBlock.Bytes)
		tls.go#L306: 		priv, ok := cert.PrivateKey.(*rsa.PrivateKey)
		tls.go#L314: 		priv, ok := cert.PrivateKey.(*ecdsa.PrivateKey)
		tls.go#L322: 		priv, ok := cert.PrivateKey.(ed25519.PrivateKey)