- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for BuildSecret (0.41 sec)
-
security/pkg/pki/ca/ca.go
return nil, fmt.Errorf("certificate is not authorized to sign other certificates") } return caOpts, nil } // BuildSecret returns a secret struct, contents of which are filled with parameters passed in. // Adds the "istio-generated" key if the secret name is `cacerts`. func BuildSecret(scrtName, namespace string, certChain, privateKey, rootCert, caCert, caPrivateKey []byte, secretType v1.SecretType) *v1.Secret {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 17.2K bytes - Viewed (0) -
security/pkg/pki/ca/ca_test.go
} } } // TestBuildSecret verifies that BuildSecret returns expected secret. func TestBuildSecret(t *testing.T) { CertPem := []byte(cert1Pem) KeyPem := []byte(key1Pem) namespace := "default" secretType := "secret-type" caSecret := BuildSecret(CASecret, namespace, nil, nil, nil, CertPem, KeyPem, v1.SecretType(secretType))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 08:51:27 UTC 2023 - 29.1K bytes - Viewed (0)