Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for VerifyOptions (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go

    	return c.caBundle.Load().(*caBundleAndVerifier).caBundle
    }
    
    // VerifyOptions provides verifyoptions compatible with authenticators
    func (c *DynamicFileCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	uncastObj := c.caBundle.Load()
    	if uncastObj == nil {
    		return x509.VerifyOptions{}, false
    	}
    
    	return uncastObj.(*caBundleAndVerifier).verifyOptions, true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/union_content.go

    		}
    	}
    
    	return bytes.Join(caBundles, []byte("\n"))
    }
    
    // CurrentCABundleContent provides ca bundle byte content
    func (c unionCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	currCABundle := c.CurrentCABundleContent()
    	if len(currCABundle) == 0 {
    		return x509.VerifyOptions{}, false
    	}
    
    	// TODO make more efficient.  This isn't actually used in any of our mainline paths.  It's called to build the TLSConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 07 14:37:01 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/configmap_cafile_content.go

    	}
    
    	return c.caBundle.Load().(*caBundleAndVerifier).caBundle
    }
    
    // VerifyOptions provides verifyoptions compatible with authenticators
    func (c *ConfigMapCAController) VerifyOptions() (x509.VerifyOptions, bool) {
    	uncastObj := c.caBundle.Load()
    	if uncastObj == nil {
    		// This can happen if we've been unable load data from the apiserver for some reason.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  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