Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for X509KeyPair (0.1 sec)

  1. 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
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. 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()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. doc/godebug.md

    not explicitly configured, removing 3DES cipher suites. The default can be reverted
    using the [`tls3des` setting](/pkg/crypto/tls/#Config.CipherSuites).
    
    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).
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 28 14:46:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. 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
    			}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. 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)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  6. 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
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top