Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for verifyActions (0.27 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

    }
    
    // DefaultVerifyOptions returns VerifyOptions that use the system root certificates, current time,
    // and requires certificates to be valid for client auth (x509.ExtKeyUsageClientAuth)
    func DefaultVerifyOptions() x509.VerifyOptions {
    	return x509.VerifyOptions{
    		KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 01:31:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/server_test.go

    // CurrentCABundleContent provides ca bundle byte content
    func (c *nullCAContent) CurrentCABundleContent() (cabundle []byte) {
    	return nil
    }
    
    func (c *nullCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	return x509.VerifyOptions{}, false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/verify_options.go

    	"k8s.io/client-go/util/cert"
    )
    
    // StaticVerifierFn is a VerifyOptionFunc that always returns the same value.  This allows verify options that cannot change.
    func StaticVerifierFn(opts x509.VerifyOptions) VerifyOptionFunc {
    	return func() (x509.VerifyOptions, bool) {
    		return opts, true
    	}
    }
    
    // NewStaticVerifierFromFile creates a new verification func from a file.  It reads the content and then fails.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 07 19:48:24 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  4. src/crypto/x509/root_plan9.go

    //go:build plan9
    
    package x509
    
    import (
    	"os"
    )
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/sys/lib/tls/ca.pem",
    }
    
    func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
    	return nil, nil
    }
    
    func loadSystemRoots() (*CertPool, error) {
    	roots := NewCertPool()
    	var bestErr error
    	for _, file := range certFiles {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 828 bytes
    - Viewed (0)
  5. src/crypto/x509/root_windows.go

    // The store is automatically freed when the CertContext is freed using
    // syscall.CertFreeCertificateContext.
    func createStoreContext(leaf *Certificate, opts *VerifyOptions) (*syscall.CertContext, error) {
    	var storeCtx *syscall.CertContext
    
    	leafCtx, err := syscall.CertCreateCertificateContext(syscall.X509_ASN_ENCODING|syscall.PKCS_7_ASN_ENCODING, &leaf.Raw[0], uint32(len(leaf.Raw)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. src/crypto/x509/root_darwin.go

    // license that can be found in the LICENSE file.
    
    package x509
    
    import (
    	macOS "crypto/x509/internal/macos"
    	"errors"
    	"fmt"
    )
    
    func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
    	certs := macOS.CFArrayCreateMutable()
    	defer macOS.ReleaseCFArray(certs)
    	leaf, err := macOS.SecCertificateCreateWithData(c.Raw)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/authenticatorfactory/delegating.go

    	// Add the front proxy authenticator if requested
    	if c.RequestHeaderConfig != nil {
    		requestHeaderAuthenticator := headerrequest.NewDynamicVerifyOptionsSecure(
    			c.RequestHeaderConfig.CAContentProvider.VerifyOptions,
    			c.RequestHeaderConfig.AllowedClientNames,
    			c.RequestHeaderConfig.UsernameHeaders,
    			c.RequestHeaderConfig.GroupHeaders,
    			c.RequestHeaderConfig.ExtraHeaderPrefixes,
    		)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 29 07:49:14 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    		},
    
    		"future cert": {
    			Opts: x509.VerifyOptions{
    				CurrentTime: time.Now().Add(time.Duration(-100 * time.Hour * 24 * 365)),
    				Roots:       getRootCertPool(t),
    			},
    			Certs: getCerts(t, clientCNCert),
    			User:  CommonNameUserConversion,
    
    			ExpectOK:  false,
    			ExpectErr: true,
    		},
    		"expired cert": {
    			Opts: x509.VerifyOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. security/pkg/pki/util/verify_cert.go

    	cert, err := ParsePemEncodedCertificate(certChainPem)
    	if err != nil {
    		return err
    	}
    
    	opts := x509.VerifyOptions{
    		Intermediates: intermediates,
    		Roots:         roots,
    	}
    	host := ""
    	if expectedFields != nil {
    		host = expectedFields.Host
    		san := host
    		// uri scheme is currently not supported in go VerifyOptions. We verify
    		// this uri at the end as a special case.
    		if strings.HasPrefix(host, "spiffe") {
    			san = ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 05 10:37:29 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/certs/renewal/filerenewer_test.go

    	if err != nil {
    		t.Fatalf("unexpected error renewing cert: %v", err)
    	}
    
    	// verify the renewed certificate
    	pool := x509.NewCertPool()
    	pool.AddCert(testCACert)
    
    	_, err = cert.Verify(x509.VerifyOptions{
    		DNSName:   "test-domain.space",
    		Roots:     pool,
    		KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    	})
    	if err != nil {
    		t.Errorf("couldn't verify new cert: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 28 04:36:54 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top