- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for X509KeyPair (0.07 seconds)
-
internal/config/certs.go
if decErr != nil { return tls.Certificate{}, ErrTLSWrongPassword(decErr) } keyPEMBlock = pem.EncodeToMemory(&pem.Block{Type: key.Type, Bytes: decryptedKey}) } cert, err := tls.X509KeyPair(certPEMBlock, keyPEMBlock) if err != nil { return tls.Certificate{}, ErrTLSUnexpectedData(nil).Msg(err.Error()) } return cert, nil }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Aug 14 17:11:51 GMT 2024 - 3.8K bytes - Click Count (0) -
internal/http/listener_test.go
BKEOXtmSZaPs3xEsnvJd8wrTgA0NQK7v48E+gHSXzQtaHmOLqisRXlUOu2r1gNCJ rr3DRiUP6V/10CZ/ImeSJ72k69VuTw9vq2HzB4x6pqxF2X7JQSLUCS2wfNN13N0d 9A== -----END CERTIFICATE-----`) return tls.X509KeyPair(certPEMBlock, keyPEMBlock) } func getNextPort() string { return strconv.Itoa(int(atomic.AddUint32(&serverPort, 1))) } func getNonLoopBackIP(t *testing.T) string { localIP4 := set.NewStringSet()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.8K bytes - Click Count (0) -
internal/kms/config.go
} keyBytes = pem.EncodeToMemory(&pem.Block{Type: privateKeyPEM.Type, Bytes: keyBytes}) } certificate, err := tls.X509KeyPair(certBytes, keyBytes) if err != nil { return tls.Certificate{}, fmt.Errorf("Unable to load KES client certificate as specified by the shell environment: %v", err) } return certificate, nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15K bytes - Click Count (0) -
doc/godebug.md
using the [`tls3des` setting](/pkg/crypto/tls/#Config.CipherSuites). This setting will be removed in Go 1.27. Go 1.23 changed the behavior of [`tls.X509KeyPair`](/pkg/crypto/tls#X509KeyPair) and [`tls.LoadX509KeyPair`](/pkg/crypto/tls#LoadX509KeyPair) to populate the Leaf field of the returned [`tls.Certificate`](/pkg/crypto/tls#Certificate).
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Dec 03 00:18:09 GMT 2025 - 24.7K bytes - Click Count (0) -
cmd/test-utils_test.go
// testDataDir := filepath.Join(filepath.Dir(dir), "test-data") // // pemFile := filepath.Join(testDataDir, "server.pem") // keyFile := filepath.Join(testDataDir, "server.key") cer, err := tls.X509KeyPair(cert, key) if err != nil { t.Fatalf("Failed to load certificate: %v", err) } config := &tls.Config{Certificates: []tls.Certificate{cer}} testServer := UnstartedTestServer(t, instanceType)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 77K bytes - Click Count (0) -
api/go1.txt
pkg crypto/tls, func LoadX509KeyPair(string, string) (Certificate, error) pkg crypto/tls, func NewListener(net.Listener, *Config) net.Listener pkg crypto/tls, func Server(net.Conn, *Config) *Conn pkg crypto/tls, func X509KeyPair([]uint8, []uint8) (Certificate, error) pkg crypto/tls, method (*Config) BuildNameToCertificate() pkg crypto/tls, method (*Conn) Close() error pkg crypto/tls, method (*Conn) ConnectionState() ConnectionState
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Click Count (0)