Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 257 for testcerts (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/net/http/internal/testcert/testcert.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package testcert contains a test-only localhost certificate.
    package testcert
    
    import "strings"
    
    // LocalhostCert is a PEM-encoded TLS cert with SAN IPs
    // "127.0.0.1" and "[::1]", expiring at Jan 29 16:00:00 2084 GMT.
    // generated from src/crypto/tls:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jan 08 00:24:25 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/pubkeypin/pubkeypin_test.go

    KGaeSSH218mGNQaWRQw2Sm3W6cFdANoCJUph4w18s7gjtFpfV63s80hXRps+vEyv
    jEQMEQpG8Ss7HGJLGLBw/xAmG0e//XS/o2dDonbGbvzToFByz8OGxjMhk6yV6hdd
    +iyvsLAw/MYMSA==
    -----END CERTIFICATE-----
    `
    
    // testCert is a small helper to get a test x509.Certificate from the PEM constants
    func testCert(t *testing.T, pemString string) *x509.Certificate {
    	// Decode the example certificate from a PEM file into a PEM block
    	pemBlock, _ := pem.Decode([]byte(pemString))
    	if pemBlock == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 13 11:38:39 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  9. security/pkg/util/certutil_test.go

    			cert:             testCert,
    			now:              time.Date(2017, time.August, 23, 21, 0, 0, 40, time.UTC),
    			expectedWaitTime: 36039,
    		},
    		"Cert expired": {
    			// Now = 2017-08-25 21:00:40 +0000 UTC.
    			// Now is later than cert's NotAfter 2017-08-24 19:00:40 +0000 UTC.
    			cert: testCert,
    			now:  time.Date(2017, time.August, 25, 21, 0, 0, 40, time.UTC),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java

        testers.add(ListHashCodeTester.class);
        testers.add(ListIndexOfTester.class);
        testers.add(ListLastIndexOfTester.class);
        testers.add(ListListIteratorTester.class);
        testers.add(ListRemoveAllTester.class);
        testers.add(ListRemoveAtIndexTester.class);
        testers.add(ListRemoveTester.class);
        testers.add(ListReplaceAllTester.class);
        testers.add(ListRetainAllTester.class);
        testers.add(ListSetTester.class);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top