Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsCA (0.03 sec)

  1. src/crypto/x509/x509_test.go

    		BasicConstraintsValid: true,
    		IsCA:                  false,
    	}
    	if m := serialiseAndParse(t, template).MaxPathLen; m != -1 {
    		t.Errorf("MaxPathLen should be -1 when IsCa is false, got %d", m)
    	}
    
    	template.MaxPathLen = -1
    	if m := serialiseAndParse(t, template).MaxPathLen; m != -1 {
    		t.Errorf("MaxPathLen should be -1 when IsCa is false and MaxPathLen set to -1, got %d", m)
    	}
    
    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

    		KeyUsage:              KeyUsageKeyEncipherment | KeyUsageDigitalSignature | KeyUsageCertSign,
    		ExtKeyUsage:           []ExtKeyUsage{ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    		IsCA:                  isCA,
    	}
    	if issuer == nil {
    		issuer = template
    		issuerKey = priv
    	}
    
    	derBytes, err := CreateCertificate(rand.Reader, template, issuer, priv.Public(), issuerKey)
    	if err != nil {
    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