Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for validFrom (0.15 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/certificates.go

    			}
    		}
    	}
    	return w.Flush()
    }
    
    func valueOrNA(value string) string {
    	if value == "" {
    		return "NA"
    	}
    	return value
    }
    
    func certNotExpired(cert *Cert) bool {
    	// case where cert state is in either Initializing or Unavailable state
    	if cert.ExpirationTime == "" && cert.ValidFrom == "" {
    		return false
    	}
    	today := time.Now()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 16:38:16 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/crypto/tls/generate_cert.go

    	// authentication.
    	if _, isRSA := priv.(*rsa.PrivateKey); isRSA {
    		keyUsage |= x509.KeyUsageKeyEncipherment
    	}
    
    	var notBefore time.Time
    	if len(*validFrom) == 0 {
    		notBefore = time.Now()
    	} else {
    		notBefore, err = time.Parse("Jan 2 15:04:05 2006", *validFrom)
    		if err != nil {
    			log.Fatalf("Failed to parse creation date: %v", err)
    		}
    	}
    
    	notAfter := notBefore.Add(*validFor)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 15:22:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  3. security/tools/generate_cert/main.go

    	saveCreds(certPem, privPem)
    	fmt.Printf("Certificate and private files successfully saved in %s and %s\n", *outCert, *outPriv)
    }
    
    func getNotBefore() time.Time {
    	if *validFrom == "" {
    		return time.Now()
    	}
    
    	t, err := time.Parse(timeLayout, *validFrom)
    	if err != nil {
    		log.Fatalf("Failed to parse the '-start-from' option as a time (error: %s)\n", err)
    	}
    
    	return t
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 28 16:21:30 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/ztunnel/configdump/api.go

    	State     string  `json:"state"`
    	CertChain []*Cert `json:"certChain"`
    }
    
    type Cert struct {
    	Pem            string `json:"pem"`
    	SerialNumber   string `json:"serialNumber"`
    	ValidFrom      string `json:"validFrom"`
    	ExpirationTime string `json:"expirationTime"`
    }
    
    type WorkloadState struct {
    	State       string              `json:"state,omitempty"`
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. tests/integration/ambient/cacert_rotation_test.go

    		if err != nil {
    			t.Logf("failed to get current workload secret: %v", err)
    			return false
    		}
    
    		// retry when workload cert is not updated
    		if originalCert.CertChain[0].ValidFrom != updatedCert.CertChain[0].ValidFrom {
    			newSecret = updatedCert
    			t.Logf("workload cert is updated")
    			return true
    		}
    
    		return false
    	}, retry.Timeout(5*time.Minute), retry.Delay(10*time.Second))
    	return newSecret
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/testdata/dump.json

              "serialNumber": "305554775863395697262503895661564044819",
              "validFrom": "2023-03-21T13:02:57Z",
              "expirationTime": "2033-03-22T13:04:57Z"
            },
            {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top