- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 300 for testcerts (0.2 sec)
-
pkg/testcerts/testcerts.go
limitations under the License. */ // This file was generated using openssl by the gencerts.sh script // and holds raw certificates for the webhook tests. package testcerts // CACert is a test cert for dynamic admission controller. var CACert = []byte(`-----BEGIN CERTIFICATE----- MIIC9DCCAdygAwIBAgIJAIFe3lWPaalKMA0GCSqGSIb3DQEBCwUAMA4xDDAKBgNV
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 08 16:24:03 UTC 2022 - 10.9K bytes - Viewed (0) -
pilot/pkg/bootstrap/server_test.go
// load key and cert files. if err := os.WriteFile(certFile, testcerts.ServerCert, 0o644); err != nil { // nolint: vetshadow t.Fatalf("WriteFile(%v) failed: %v", certFile, err) } if err := os.WriteFile(keyFile, testcerts.ServerKey, 0o644); err != nil { // nolint: vetshadow t.Fatalf("WriteFile(%v) failed: %v", keyFile, err) } if err := os.WriteFile(caFile, testcerts.CACert, 0o644); err != nil { // nolint: vetshadow
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package testcerts contains generated key pairs used by the unit tests of // mutating and validating webhooks. They are for testing only.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 18 05:02:47 UTC 2017 - 797 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/authentication_info_resolver.go
return &authenticationInfoResolver{ restConfig: &rest.Config{ TLSClientConfig: rest.TLSClientConfig{ CAData: testcerts.CACert, CertData: testcerts.ClientCert, KeyData: testcerts.ClientKey, }, }, cacheMisses: cacheMisses, } } type authenticationInfoResolver struct { restConfig *rest.Config cacheMisses *int32 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 18 18:49:55 UTC 2022 - 2.7K bytes - Viewed (0) -
security/pkg/nodeagent/cache/secretcache_test.go
checkSecret(t, sc, workloadResource, security.SecretItem{ ResourceName: workloadResource, CertificateChain: testcerts.RotatedCert, PrivateKey: testcerts.RotatedKey, }) if err := file.AtomicWrite(sc.existingCertificateFile.PrivateKeyPath, testcerts.RotatedKey, os.FileMode(0o644)); err != nil { t.Fatal(err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 23.9K bytes - Viewed (0) -
pkg/webhooks/validation/controller/controller_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 05 03:21:04 UTC 2024 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/webhook_server.go
"k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts" testingclock "k8s.io/utils/clock/testing" ) // NewTestServerWithHandler returns a webhook test HTTPS server // which uses given handler function to handle requests func NewTestServerWithHandler(t testing.TB, handler func(http.ResponseWriter, *http.Request)) *httptest.Server { // Create the test webhook server sCert, err := tls.X509KeyPair(testcerts.ServerCert, testcerts.ServerKey)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 15 11:11:25 UTC 2021 - 6.3K bytes - Viewed (0) -
pkg/testcerts/generate-certs.sh
basicConstraints = CA:FALSE keyUsage = nonRepudiation, digitalSignature, keyEncipherment extendedKeyUsage = clientAuth, serverAuth subjectAltName = @alt_names [alt_names] IP.1 = 127.0.0.1 IP.2 = ::1 EOF outfile=testcerts.go # Create a certificate authority openssl genrsa -out CAKey.pem 2048 openssl req -x509 -new -nodes -key CAKey.pem -days 100000 -out CACert.pem -subj "/CN=${CN_BASE}_ca" # Create a server certificate
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 3.3K bytes - Viewed (0) -
pkg/webhooks/validation/server/server_test.go
keyFile = filepath.Join(dir, "key-file.yaml") port = uint(0) ) // cert if err := os.WriteFile(certFile, testcerts.ServerCert, 0o644); err != nil { // nolint: vetshadow t.Fatalf("WriteFile(%v) failed: %v", certFile, err) } // key if err := os.WriteFile(keyFile, testcerts.ServerKey, 0o644); err != nil { // nolint: vetshadow t.Fatalf("WriteFile(%v) failed: %v", keyFile, err) } options := Options{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 9.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/gencerts.sh
limitations under the License. */ // This file was generated using openssl by the gencerts.sh script // and holds raw certificates for the webhook tests. package testcerts EOF for file in CAKey CACert BadCAKey BadCACert ServerKey ServerCert ClientKey ClientCert; do data=$(cat ${file}.pem) echo "" >> $outfile echo "var $file = []byte(\`$data\`)" >> $outfile done
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 24 05:55:09 UTC 2019 - 3.5K bytes - Viewed (0)