Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for pemKey (0.23 sec)

  1. security/pkg/pki/ca/selfsignedcarootcertrotator_test.go

    ) {
    	certItem := loadCert(rotator)
    
    	pemCert, pemKey, err := util.GenCertKeyFromOptions(options)
    	if err != nil {
    		t.Fatalf("failed to rotate secret: %v", err)
    	}
    	newSecret := certItem.caSecret
    	newSecret.Data[CACertFile] = pemCert
    	newSecret.Data[CAPrivateKeyFile] = pemKey
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 11 23:33:41 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  2. security/pkg/pki/ca/ca.go

    				pkiCaLog.Warnf("failed to create CA KeyCertBundle (%v)", err)
    				return fmt.Errorf("failed to create CA KeyCertBundle (%v)", err)
    			}
    			// Write the key/cert back to secret, so they will be persistent when CA restarts.
    			secret := BuildSecret(caCertName, namespace, nil, nil, pemCert, pemCert, pemKey, istioCASecretType)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  3. security/pkg/pki/util/generate_cert.go

    	if err != nil {
    		return nil, nil, fmt.Errorf("cert generation fails at X509 cert creation (%v)", err)
    	}
    
    	pemCert, pemKey, err := encodePem(false, certBytes, priv, options.PKCS8Key)
    	return pemCert, pemKey, err
    }
    
    func publicKey(priv any) any {
    	switch k := priv.(type) {
    	case *rsa.PrivateKey:
    		return &k.PublicKey
    	case *ecdsa.PrivateKey:
    		return &k.PublicKey
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. security/pkg/pki/ca/selfsignedcarootcertrotator.go

    	// This is to make sure when rotate the root cert, we don't make unnecessary changes
    	// to the certificate or add extra fields to the certificate.
    	options = util.MergeCertOptions(options, oldCertOptions)
    	pemCert, pemKey, ckErr := util.GenRootCertFromExistingKey(options)
    	if ckErr != nil {
    		rootCertRotatorLog.Errorf("unable to generate CA cert and key for self-signed CA: %s", ckErr.Error())
    		return
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  5. pkg/controller/endpointslicemirroring/metrics/cache.go

    	}
    }
    
    // Set updates the EndpointPortCache to contain the provided EfficiencyInfo
    // for the provided PortMapKey.
    func (spc *EndpointPortCache) Set(pmKey endpointsliceutil.PortMapKey, eInfo EfficiencyInfo) {
    	spc.items[pmKey] = eInfo
    }
    
    // numEndpoints returns the total number of endpoints represented by a
    // EndpointPortCache.
    func (spc *EndpointPortCache) numEndpoints() int {
    	num := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top