Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CertOptions (0.58 sec)

  1. security/pkg/pki/util/keycertbundle_test.go

    			certOptions: &CertOptions{
    				Host:       "watt",
    				TTL:        100 * 365 * 24 * time.Hour,
    				Org:        "Juju org",
    				IsCA:       false,
    				RSAKeySize: 2048,
    			},
    			expectedErr: "",
    		},
    		"No SAN EC": {
    			caCertFile:    ecRootCertFile,
    			caKeyFile:     ecRootKeyFile,
    			certChainFile: nil,
    			rootCertFile:  ecRootCertFile,
    			certOptions: &CertOptions{
    				Host:     "watt",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. security/pkg/pki/util/keycertbundle.go

    	b.cert, _ = ParsePemEncodedCertificate(certBytes)
    	privKey, _ := ParsePemEncodedKey(privKeyBytes)
    	b.privKey = &privKey
    	b.mutex.Unlock()
    }
    
    // CertOptions returns the certificate config based on currently stored cert.
    func (b *KeyCertBundle) CertOptions() (*CertOptions, error) {
    	b.mutex.RLock()
    	defer b.mutex.RUnlock()
    	ids, err := ExtractIDs(b.cert.Extensions)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. security/pkg/k8s/chiron/utils_test.go

    				}
    			} else if err != nil {
    				t.Fatalf("failed at updateMutatingWebhookConfig: %v", err)
    			}
    		})
    	}
    }
    
    func createFakeCsr(t *testing.T) []byte {
    	options := pkiutil.CertOptions{
    		Host:       "fake.com",
    		RSAKeySize: 2048,
    		PKCS8Key:   false,
    		ECSigAlg:   pkiutil.SupportedECSignatureAlgorithms("ECDSA"),
    	}
    	csrPEM, _, err := pkiutil.GenCSR(options)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. security/pkg/nodeagent/cache/secretcache.go

    		Namespace:      sc.configOptions.WorkloadNamespace,
    		ServiceAccount: sc.configOptions.ServiceAccount,
    	}
    
    	cacheLog.Debugf("constructed host name for CSR: %s", csrHostName.String())
    	options := pkiutil.CertOptions{
    		Host:       csrHostName.String(),
    		RSAKeySize: sc.configOptions.WorkloadRSAKeySize,
    		PKCS8Key:   sc.configOptions.Pkcs8Keys,
    		ECSigAlg:   pkiutil.SupportedECSignatureAlgorithms(sc.configOptions.ECCSigAlg),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 08:29:46 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top