Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 391 for caCert (0.12 sec)

  1. pkg/controller/certificates/authority/authority_test.go

    		want    x509.Certificate
    		wantErr string
    	}{
    		{
    			name:   "ca info",
    			policy: PermissiveSigningPolicy{TTL: time.Hour, Now: nowFunc},
    			want: x509.Certificate{
    				Issuer:                caCert.Subject,
    				AuthorityKeyId:        caCert.SubjectKeyId,
    				NotBefore:             now,
    				NotAfter:              now.Add(1 * time.Hour),
    				BasicConstraintsValid: true,
    			},
    		},
    		{
    			name:   "key usage",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 19:36:11 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  2. samples/jwt-server/src/main_test.go

    }
    
    func TestJwtHTTPSServer(t *testing.T) {
    	var (
    		serverKey  = "../testdata/server.key"
    		serverCert = "../testdata/server.crt"
    	)
    
    	caCert, err := os.ReadFile(serverCert)
    	if err != nil {
    		t.Fatal(err)
    	}
    	caCertPool := x509.NewCertPool()
    	caCertPool.AppendCertsFromPEM(caCert)
    
    	// creating https client with client certificate and certificate authority
    	httpsClient := &http.Client{
    		Transport: &http.Transport{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 23 16:58:02 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. pkg/test/echo/proto/echo.proto

      // If non-empty, make the request with the corresponding cert and key.
      string cert = 10;
      string key = 11;
      // If non-empty, verify the server CA
      string caCert = 12;
      // If non-empty, make the request with the corresponding cert and key file.
      string certFile = 16;
      string keyFile = 17;
      // If non-empty, verify the server CA with the ca cert file.
      string caCertFile = 18;
      // Skip verifying peer's certificate.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 31 17:42:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/crypto/x509/root_solaris.go

    package x509
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/etc/certs/ca-certificates.crt",     // Solaris 11.2+
    	"/etc/ssl/certs/ca-certificates.crt", // Joyent SmartOS
    	"/etc/ssl/cacert.pem",                // OmniOS
    }
    
    // Possible directories with certificate files; all will be read.
    var certDirectories = []string{
    	"/etc/certs/CA",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 02 22:53:18 UTC 2021
    - 538 bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/config_selfclient.go

    // select the loopback certificate via SNI if TLS is used.
    const LoopbackClientServerNameOverride = "apiserver-loopback-client"
    
    func (s *SecureServingInfo) NewClientConfig(caCert []byte) (*restclient.Config, error) {
    	if s == nil || (s.Cert == nil && len(s.SNICerts) == 0) {
    		return nil, nil
    	}
    
    	host, port, err := LoopbackHostPort(s.Listener.Addr().String())
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 23 00:06:34 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/upgrade/staticpods_test.go

    				certsphase.KubeadmCertEtcdAPIClient(),
    			} {
    				if err := cert.CreateFromCA(newcfg, caCert, caKey); err != nil {
    					t.Fatalf("couldn't create certificate %s: %v", cert.Name, err)
    				}
    			}
    
    			actualErr := StaticPodControlPlane(
    				nil,
    				waiter,
    				pathMgr,
    				newcfg,
    				true,
    				true,
    				fakeTLSEtcdClient{
    					TLS: false,
    				},
    				fakePodManifestEtcdClient{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/certs/renewal/readwriter.go

    	}
    
    	// The CA cert is required for updating kubeconfig files.
    	// For local CA renewal, the local CA on disk could have changed, thus a reload is needed.
    	// For CSR renewal we assume the same CA on disk is mounted for usage with KCM's
    	// '--cluster-signing-cert-file' flag.
    	certificatePath, _ := pkiutil.PathsForCertAndKey(rw.certificateDir, rw.baseName)
    	caCerts, err := certutil.CertsFromFile(certificatePath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 01 03:09:53 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/transport/transport.go

    func (tr *transport) initialize() error {
    	var cert, key, ca string
    	if tr.cert != nil {
    		cert = *tr.cert
    	}
    	if tr.key != nil {
    		key = *tr.key
    	}
    	if tr.ca != nil {
    		ca = *tr.ca
    	}
    
    	if cert != "" && key != "" {
    		tlsCert, err := tls.LoadX509KeyPair(cert, key)
    		if err != nil {
    			return fmt.Errorf("could not load certificate/key pair specified by -tls_cert and -tls_key: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  9. 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
    BAMMA19jYTAgFw0xNzEyMjIxODA0MjRaGA8yMjkxMTAwNzE4MDQyNFowDjEMMAoG
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:03 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  10. pilot/pkg/xds/sds.go

    // and push skipping. This is because an secret potentially has a dependency on the same secret with or without
    // the -cacert suffix. By including this dependency we ensure we do not miss any updates.
    // This is important for cases where we have a compound secret. In this case, the `foo` secret may update,
    // but we need to push both the `foo` and `foo-cacert` resource name, or they will fall out of sync.
    func relatedConfigs(k model.ConfigKey) []model.ConfigKey {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top