Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for keyFiles (0.43 sec)

  1. platforms/software/security/src/testFixtures/groovy/org/gradle/security/fixtures/KeyServer.groovy

            def keyFile = baseDirectory.createFile("${longKeyId}.asc")
            keyFile.deleteOnExit()
            keyFile.newOutputStream().withCloseable { out ->
                new ArmoredOutputStream(out).withCloseable {
                    key.encode(it)
                }
            }
            registerKey(longKeyId, keyFile)
            registerKey(fingerprint, keyFile)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. pkg/test/cert/cert.go

    import (
    	"fmt"
    	"os/exec"
    )
    
    // GenerateKey and writes output to keyFile.
    func GenerateKey(keyFile string) error {
    	return openssl("genrsa", "-out", keyFile, "1024")
    }
    
    // GenerateCSR and writes output to csrFile.
    func GenerateCSR(confFile, keyFile, csrFile string) error {
    	return openssl("req", "-new",
    		"-config", confFile,
    		"-key", keyFile,
    		"-out", csrFile)
    }
    
    // GenerateCert and writes output to certFile.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 22 14:18:21 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/tls_test.go

    	codec := apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion)
    
    	certFile, keyFile, caFile := configureTLSCerts(t)
    	defer os.RemoveAll(filepath.Dir(certFile))
    
    	// override server config to be TLS-enabled
    	etcdConfig := testserver.NewTestConfig(t)
    	etcdConfig.ClientTLSInfo = transport.TLSInfo{
    		CertFile:      certFile,
    		KeyFile:       keyFile,
    		TrustedCAFile: caFile,
    	}
    	for i := range etcdConfig.ListenClientUrls {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. pkg/test/cert/ca/intermediate.go

    // IntermediateCA is an intermediate CA for a single cluster.
    type Intermediate struct {
    	KeyFile  string
    	ConfFile string
    	CSRFile  string
    	CertFile string
    	Root     Root
    }
    
    // NewIntermediate creates a new intermediate CA for the given cluster.
    func NewIntermediate(workDir, config string, root Root) (Intermediate, error) {
    	ca := Intermediate{
    		KeyFile:  filepath.Join(workDir, "ca-key.pem"),
    		ConfFile: filepath.Join(workDir, "ca.conf"),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  5. docs/iam/access-manager-plugin.go

    	serveFunc := func() error {
    		return http.ListenAndServe(":8080", nil)
    	}
    
    	if certFile != "" || keyFile != "" {
    		if certFile == "" || keyFile == "" {
    			log.Fatal("Please provide both a key file and a cert file to enable TLS.")
    		}
    		serveFunc = func() error {
    			return http.ListenAndServeTLS(":8080", certFile, keyFile, nil)
    		}
    	}
    
    	http.HandleFunc("/", mainHandler)
    
    	log.Print("Listening on :8080")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 08 17:15:20 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_serving_content.go

    func NewDynamicServingContentFromFiles(purpose, certFile, keyFile string) (*DynamicCertKeyPairContent, error) {
    	if len(certFile) == 0 || len(keyFile) == 0 {
    		return nil, fmt.Errorf("missing filename for serving cert")
    	}
    	name := fmt.Sprintf("%s::%s::%s", purpose, certFile, keyFile)
    
    	ret := &DynamicCertKeyPairContent{
    		name:     name,
    		certFile: certFile,
    		keyFile:  keyFile,
    		queue: workqueue.NewTypedRateLimitingQueueWithConfig(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. pkg/kubelet/client/kubelet_client_test.go

    )
    
    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 {
    		t.Errorf("Expected an error")
    	}
    	if rt != 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)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/DeploymentContinuousBuildIntegrationTest.groovy

            then:
            def key = fixture.keyFile.text
            fixture.assertDeploymentIsRunning(key)
            buildTimes.size() == 2
            buildTimes[0] >= buildTimes[1]
        }
    
        @ToBeFixedForConfigurationCache
        def "deployment in continuous build reports accurate build time" () {
            when:
            succeeds("runDeployment")
    
            then:
            def key = fixture.keyFile.text
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/common/call.go

    		Cert:                    opts.TLS.Cert,
    		Key:                     opts.TLS.Key,
    		CaCert:                  opts.TLS.CaCert,
    		CertFile:                opts.TLS.CertFile,
    		KeyFile:                 opts.TLS.KeyFile,
    		CaCertFile:              opts.TLS.CaCertFile,
    		InsecureSkipVerify:      opts.TLS.InsecureSkipVerify,
    		Alpn:                    getProtoALPN(opts.TLS.Alpn),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. pilot/pkg/keycertbundle/watcher.go

    		}
    	}
    }
    
    // SetFromFilesAndNotify sets the key cert and root cert from files and notify the watchers.
    func (w *Watcher) SetFromFilesAndNotify(keyFile, certFile, rootCert string) error {
    	cert, err := os.ReadFile(certFile)
    	if err != nil {
    		return err
    	}
    	key, err := os.ReadFile(keyFile)
    	if err != nil {
    		return err
    	}
    	caBundle, err := os.ReadFile(rootCert)
    	if err != nil {
    		return err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top