Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BasicConstraintsValid (0.22 sec)

  1. src/crypto/x509/x509_test.go

    		t.Error("setting MaxPathLenZero when IsCA is false should fail")
    	}
    
    	template.BasicConstraintsValid = false
    	if m := serialiseAndParse(t, template).MaxPathLen; m != 0 {
    		t.Errorf("Bad MaxPathLen should be ignored if BasicConstraintsValid is false, got %d", m)
    	}
    }
    
    func TestMaxPathLen(t *testing.T) {
    	template := &Certificate{
    		SerialNumber: big.NewInt(1),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  2. src/crypto/x509/verify_test.go

    		NotAfter:     time.Now().Add(24 * time.Hour),
    
    		KeyUsage:              KeyUsageKeyEncipherment | KeyUsageDigitalSignature | KeyUsageCertSign,
    		ExtKeyUsage:           []ExtKeyUsage{ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    		IsCA:                  isCA,
    	}
    	if issuer == nil {
    		issuer = template
    		issuerKey = priv
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
Back to top