Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 119 for certFiles (0.24 sec)

  1. tests/fuzz/pki_fuzzer.go

    func FuzzUpdateVerifiedKeyCertBundleFromFile(data []byte) int {
    	f := fuzz.NewConsumer(data)
    	certFile, err := os.Create("certfile")
    	if err != nil {
    		return 0
    	}
    	defer certFile.Close()
    	defer os.Remove("certfile")
    
    	certFileBytes, err := f.GetBytes()
    	if err != nil {
    		return 0
    	}
    	_, err = certFile.Write(certFileBytes)
    	if err != nil {
    		return 0
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:25 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. cmd/kube-controller-manager/app/certificates.go

    	return len(config.KubeletServingSignerConfiguration.CertFile) > 0 || len(config.KubeletServingSignerConfiguration.KeyFile) > 0
    }
    func areKubeletClientSignerFilesSpecified(config csrsigningconfig.CSRSigningControllerConfiguration) bool {
    	// if only one is specified, it will error later during construction
    	return len(config.KubeletClientSignerConfiguration.CertFile) > 0 || len(config.KubeletClientSignerConfiguration.KeyFile) > 0
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 11:28:02 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  3. pkg/test/cert/ca/root.go

    	KeyFile string
    
    	// ConfFile is the path to the file containing the extensions configuration file.
    	ConfFile string
    
    	// CSRFile used to generate the cert.
    	CSRFile string
    
    	// CertFile the cert for the root CA.
    	CertFile string
    }
    
    // NewRoot generates the files for a new self-signed Root CA files under the given directory.
    func NewRoot(workDir string) (Root, error) {
    	root := Root{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 03 18:09:59 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. pkg/kubelet/client/kubelet_client_test.go

    	"net/url"
    	"strconv"
    	"testing"
    )
    
    func TestMakeTransportInvalid(t *testing.T) {
    	config := &KubeletClientConfig{
    		// Invalid certificate and key path
    		TLSClientConfig: KubeletTLSConfig{
    			CertFile: "../../client/testdata/mycertinvalid.cer",
    			KeyFile:  "../../client/testdata/mycertinvalid.key",
    			CAFile:   "../../client/testdata/myCA.cer",
    		},
    	}
    
    	rt, err := MakeTransport(config)
    	if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 01:34:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcweb/vcstest/vcstest.go

    // TLSClient returns an http.Client that can talk to the httptest.Server
    // whose certificate is written to the given file path.
    func TLSClient(certFile string) (*http.Client, error) {
    	client := &http.Client{
    		Transport: http.DefaultTransport.(*http.Transport).Clone(),
    	}
    
    	pemBytes, err := os.ReadFile(certFile)
    	if err != nil {
    		return nil, err
    	}
    
    	certpool := x509.NewCertPool()
    	if !certpool.AppendCertsFromPEM(pemBytes) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:44:48 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  6. pkg/test/csrctrl/signer/signer.go

    	}
    
    	intermediateCerts, err := util.AppendRootCerts(pemBytes.Bytes(), s.caProvider.caIntermediate.CertFile)
    	if err != nil {
    		return nil, fmt.Errorf("failed to append intermediate certificates (%v)", err)
    	}
    	if appendRootCert {
    		rootCerts, err := util.AppendRootCerts(intermediateCerts, s.caProvider.caLoader.CertFile)
    		if err != nil {
    			return nil, fmt.Errorf("failed to append root certificates (%v)", err)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  7. pkg/controller/certificates/signer/config/types.go

    	ClusterSigningDuration metav1.Duration
    }
    
    // CSRSigningConfiguration holds information about a particular CSR signer
    type CSRSigningConfiguration struct {
    	// certFile is the filename containing a PEM-encoded
    	// X509 CA certificate used to issue certificates
    	CertFile string
    	// keyFile is the filename containing a PEM-encoded
    	// RSA or ECDSA private key used to issue certificates
    	KeyFile string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 02 03:38:15 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  8. pkg/controller/certificates/signer/config/v1alpha1/zz_generated.conversion.go

    	}
    	return nil
    }
    
    func autoConvert_v1alpha1_CSRSigningConfiguration_To_config_CSRSigningConfiguration(in *v1alpha1.CSRSigningConfiguration, out *config.CSRSigningConfiguration, s conversion.Scope) error {
    	out.CertFile = in.CertFile
    	out.KeyFile = in.KeyFile
    	return nil
    }
    
    // Convert_v1alpha1_CSRSigningConfiguration_To_config_CSRSigningConfiguration is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 8K bytes
    - Viewed (0)
  9. pkg/test/csrctrl/signer/ca_provider.go

    func (p *caProvider) currentCertContent() ([]byte, error) {
    	certBytes, err := os.ReadFile(p.caIntermediate.CertFile)
    	if err != nil {
    		return []byte(""), fmt.Errorf("error reading CA from cert file %s: %v", p.caLoader.CertFile, err)
    	}
    	return certBytes, nil
    }
    
    // currentKeyContent retrieve current private key content from key file
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 27 08:14:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  10. pilot/pkg/keycertbundle/watcher_test.go

    	ca := []byte("caBundle")
    	keyFile := path.Join(tmpDir, "key.pem")
    	certFile := path.Join(tmpDir, "cert.pem")
    	caFile := path.Join(tmpDir, "ca.pem")
    
    	os.WriteFile(keyFile, key, os.ModePerm)
    	os.WriteFile(certFile, cert, os.ModePerm)
    	os.WriteFile(caFile, ca, os.ModePerm)
    
    	// 2. set key cert bundle
    	watcher.SetFromFilesAndNotify(keyFile, certFile, caFile)
    	select {
    	case <-watch1:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 28 17:46:00 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top