Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for OutputKeyCertToDir (0.44 sec)

  1. security/pkg/nodeagent/util/util.go

    	if err != nil {
    		return time.Time{}, fmt.Errorf("failed to parse certificate: %v", err)
    	}
    	return cert.NotAfter, nil
    }
    
    // OutputKeyCertToDir output the key and certificate to the given directory.
    // If directory string is empty, return nil.
    func OutputKeyCertToDir(dir string, privateKey, certChain, rootCert []byte) error {
    	var err error
    	if len(dir) == 0 {
    		return nil
    	}
    
    	certFileMode := os.FileMode(0o600)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 10:33:38 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/options/security.go

    	o := &security.Options{
    		CAEndpoint:                     caEndpointEnv,
    		CAProviderName:                 caProviderEnv,
    		PilotCertProvider:              features.PilotCertProvider,
    		OutputKeyCertToDir:             outputKeyCertToDir,
    		ProvCert:                       provCert,
    		ClusterID:                      clusterIDVar.Get(),
    		FileMountedCerts:               fileMountedCertsEnv,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. pkg/istio-agent/agent_test.go

    		// that expect certs as files, like Prometheus.
    		dir := mktemp()
    		sds := Setup(t, func(a AgentTest) AgentTest {
    			a.Security.OutputKeyCertToDir = dir
    			a.Security.SecretRotationGracePeriodRatio = 1
    			return a
    		}).Check(t, security.WorkloadKeyCertResourceName, security.RootCertReqResourceName)
    
    		// Ensure we output the certs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. security/pkg/nodeagent/cache/secretcache.go

    			if err := nodeagentutil.OutputKeyCertToDir(sc.configOptions.OutputKeyCertToDir, secret.PrivateKey,
    				secret.CertificateChain, secret.RootCert); err != nil {
    				cacheLog.Errorf("error when output the resource: %v", err)
    			} else if sc.configOptions.OutputKeyCertToDir != "" {
    				resourceLog(resourceName).Debugf("output the resource to %v", sc.configOptions.OutputKeyCertToDir)
    			}
    		}
    	}()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 08:29:46 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/options/options.go

    	// set to "SYSTEM" for ACME/public signed CA servers.
    	caRootCA = env.Register("CA_ROOT_CA", "",
    		"Explicitly set the root CA to expect for the CA connection.").Get()
    
    	outputKeyCertToDir = env.Register("OUTPUT_CERTS", "",
    		"The output directory for the key and certificate. If empty, key and certificate will not be saved. "+
    			"Must be set for VMs using provisioning certificates.").Get()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 09 19:21:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. pkg/security/security.go

    	// WorkloadRSAKeySize is the size of a private key for a workload certificate.
    	WorkloadRSAKeySize int
    
    	// Whether to generate PKCS#8 private keys.
    	Pkcs8Keys bool
    
    	// OutputKeyCertToDir is the directory for output the key and certificate
    	OutputKeyCertToDir string
    
    	// ProvCert is the directory for client to provide the key and certificate to CA server when authenticating
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  7. pkg/istio-agent/agent.go

    	_, err = grpcxds.GenerateBootstrapFile(grpcxds.GenerateBootstrapOptions{
    		Node:             node,
    		XdsUdsPath:       a.cfg.XdsUdsPath,
    		DiscoveryAddress: a.proxyConfig.DiscoveryAddress,
    		CertDir:          a.secOpts.OutputKeyCertToDir,
    	}, a.cfg.GRPCBootstrapPath)
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    // Check is used in to readiness check of agent to ensure DNSServer is ready.
    func (a *Agent) Check() (err error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top