Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SNINames (0.49 sec)

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

    type sniCertKeyContent struct {
    	certKeyContent
    	sniNames []string
    }
    
    func (c *sniCertKeyContent) Equal(rhs *sniCertKeyContent) bool {
    	if c == nil || rhs == nil {
    		return c == rhs
    	}
    
    	if len(c.sniNames) != len(rhs.sniNames) {
    		return false
    	}
    
    	for i := range c.sniNames {
    		if c.sniNames[i] != rhs.sniNames[i] {
    			return false
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/static_content.go

    	}
    
    	return &staticSNICertKeyContent{
    		staticCertKeyContent: staticCertKeyContent{
    			name: name,
    			cert: cert,
    			key:  key,
    		},
    		sniNames: sniNames,
    	}, nil
    }
    
    func (c *staticSNICertKeyContent) SNINames() []string {
    	return c.sniNames
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/cert_key_test.go

    			rhs:      &sniCertKeyContent{certKeyContent: certKeyContent{cert: []byte("foo"), key: []byte("baz")}, sniNames: []string{"a"}},
    			expected: true,
    		},
    		{
    			name:     "different cert",
    			lhs:      &sniCertKeyContent{certKeyContent: certKeyContent{cert: []byte("foo"), key: []byte("baz")}, sniNames: []string{"a"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 22 13:27:45 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_sni_content.go

    		DynamicCertKeyPairContent: servingContent,
    		sniNames:                  sniNames,
    	}
    	if err := ret.loadCertKeyPair(); err != nil {
    		return nil, err
    	}
    
    	return ret, nil
    }
    
    // SNINames returns explicitly set SNI names for the certificate. These are not dynamic.
    func (c *DynamicFileSNIContent) SNINames() []string {
    	return c.sniNames
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/interfaces.go

    // well as optional explicit names.
    type SNICertKeyContentProvider interface {
    	Notifier
    
    	CertKeyContentProvider
    	// SNINames provides names used for SNI. May return nil.
    	SNINames() []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig_test.go

    				// ignore sni names for serving cert
    				servingCert: certKeyContent{cert: serverCert, key: serverKey},
    				sniCerts:    []sniCertKeyContent{{certKeyContent: certKeyContent{cert: serverCert, key: serverKey}, sniNames: []string{"foo"}}},
    			},
    		},
    		{
    			name:     "nil",
    			expected: &dynamicCertificateContent{clientCA: caBundleContent{}, servingCert: certKeyContent{}},
    		},
    	}
    
    	for _, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    		}
    
    		newContent.sniCerts = append(newContent.sniCerts, sniCertKeyContent{certKeyContent: certKeyContent{cert: currCert, key: currKey}, sniNames: sniCert.SNINames()})
    	}
    
    	return newContent, nil
    }
    
    // syncCerts gets newTLSContent, if it has changed from the existing, the content is parsed and stored for usage in
    // GetConfigForClient.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/named_certificates.go

    		}
    
    		// error is not possible given above call to X509KeyPair
    		x509Cert, _ := x509.ParseCertificate(cert.Certificate[0])
    
    		names := sniCerts[i].sniNames
    		for _, name := range names {
    			byNameExplicit[name] = &cert
    		}
    
    		klog.V(2).InfoS("Loaded SNI cert", "index", i, "certName", c.sniCerts[i].Name(), "certDetail", GetHumanCertDetail(x509Cert))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 21 07:29:30 UTC 2022
    - 3.2K bytes
    - Viewed (0)
Back to top