Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 72 for NotBefore (0.16 sec)

  1. cmd/test-utils_test.go

    	var err error
    	priv, err = rsa.GenerateKey(crand.Reader, rsaBits)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to generate private key: %w", err)
    	}
    
    	notBefore := time.Now()
    	notAfter := notBefore.Add(validFor)
    
    	serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128)
    	serialNumber, err := crand.Int(crand.Reader, serialNumberLimit)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  2. src/crypto/x509/x509.go

    	Extensions         []pkix.Extension `asn1:"omitempty,optional,explicit,tag:3"`
    }
    
    type dsaAlgorithmParameters struct {
    	P, Q, G *big.Int
    }
    
    type validity struct {
    	NotBefore, NotAfter time.Time
    }
    
    type publicKeyInfo struct {
    	Raw       asn1.RawContent
    	Algorithm pkix.AlgorithmIdentifier
    	PublicKey asn1.BitString
    }
    
    // RFC 5280,  4.2.1.1
    type authKeyId struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  3. pilot/pkg/xds/sds.go

    	if err != nil {
    		return err
    	}
    	now := time.Now()
    	for _, cert := range certs {
    		// check if the certificate has expired
    		if now.After(cert.NotAfter) || now.Before(cert.NotBefore) {
    			return fmt.Errorf("certificate is expired or not yet valid")
    		}
    	}
    	return nil
    }
    
    func recordInvalidCertificate(name string, err error) {
    	pilotSDSCertificateErrors.Increment()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. pkg/controller/certificates/signer/signer_test.go

    		},
    		KeyUsage:              x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth},
    		BasicConstraintsValid: true,
    		NotBefore:             fakeClock.Now().Add(-5 * time.Minute),
    		NotAfter:              fakeClock.Now().Add(1 * time.Hour),
    		PublicKeyAlgorithm:    x509.ECDSA,
    		SignatureAlgorithm:    x509.SHA256WithRSA,
    		MaxPathLen:            -1,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 15K bytes
    - Viewed (0)
  5. src/crypto/x509/name_constraints_test.go

    	var serialBytes [16]byte
    	rand.Read(serialBytes[:])
    
    	template := &Certificate{
    		SerialNumber: new(big.Int).SetBytes(serialBytes[:]),
    		Subject: pkix.Name{
    			CommonName: name,
    		},
    		NotBefore:             time.Unix(1000, 0),
    		NotAfter:              time.Unix(2000, 0),
    		KeyUsage:              KeyUsageCertSign,
    		BasicConstraintsValid: true,
    		IsCA:                  true,
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. src/crypto/tls/boring_test.go

    		org = org[:i]
    		parentOrg = name[i+1:]
    	}
    	tmpl := &x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject: pkix.Name{
    			Organization: []string{org},
    		},
    		NotBefore: time.Unix(0, 0),
    		NotAfter:  time.Unix(0, 0),
    
    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. src/crypto/x509/verify.go

    		}
    	}
    
    	now := opts.CurrentTime
    	if now.IsZero() {
    		now = time.Now()
    	}
    	if now.Before(c.NotBefore) {
    		return CertificateInvalidError{
    			Cert:   c,
    			Reason: Expired,
    			Detail: fmt.Sprintf("current time %s is before %s", now.Format(time.RFC3339), c.NotBefore.Format(time.RFC3339)),
    		}
    	} else if now.After(c.NotAfter) {
    		return CertificateInvalidError{
    			Cert:   c,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  8. src/encoding/asn1/asn1_test.go

    type RelativeDistinguishedNameSET []AttributeTypeAndValue
    
    type AttributeTypeAndValue struct {
    	Type  ObjectIdentifier
    	Value any
    }
    
    type Validity struct {
    	NotBefore, NotAfter time.Time
    }
    
    type PublicKeyInfo struct {
    	Algorithm AlgorithmIdentifier
    	PublicKey BitString
    }
    
    func TestCertificate(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/constants/constants.go

    	ManifestsSubDirName = "manifests"
    	// TempDirForKubeadm defines temporary directory for kubeadm
    	// should be joined with KubernetesDir.
    	TempDirForKubeadm = "tmp"
    
    	// CertificateBackdate defines the offset applied to notBefore for CA certificates generated by kubeadm
    	CertificateBackdate = time.Minute * 5
    	// CertificateValidityPeriod defines the validity period for all the signed certificates generated by kubeadm
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    				check ^= xxh3.HashString(v.String())
    			}
    			tlsInfo.Certs = append(tlsInfo.Certs, madmin.TLSCert{
    				PubKeyAlgo:    c.PublicKeyAlgorithm.String(),
    				SignatureAlgo: c.SignatureAlgorithm.String(),
    				NotBefore:     c.NotBefore,
    				NotAfter:      c.NotAfter,
    				Checksum:      strconv.FormatUint(check, 16),
    			})
    		}
    	}
    	return tlsInfo
    }
    
    // ServerInfoHandler - GET /minio/admin/v3/info
    // ----------
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top