Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for x509 (0.04 sec)

  1. src/crypto/x509/x509.go

    	if template == nil {
    		return nil, errors.New("x509: template can not be nil")
    	}
    	if issuer == nil {
    		return nil, errors.New("x509: issuer can not be nil")
    	}
    	if (issuer.KeyUsage & KeyUsageCRLSign) == 0 {
    		return nil, errors.New("x509: issuer must have the crlSign key usage bit set")
    	}
    	if len(issuer.SubjectKeyId) == 0 {
    		return nil, errors.New("x509: issuer certificate doesn't contain a subject key identifier")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_client_test.go

    // signed itself with RSA-PSS, mostly to check that crypto/x509 chain validation
    // works.
    func TestHandshakeClientCertRSAPSS(t *testing.T) {
    	cert, err := x509.ParseCertificate(testRSAPSSCertificate)
    	if err != nil {
    		panic(err)
    	}
    	rootCAs := x509.NewCertPool()
    	rootCAs.AddCert(cert)
    
    	config := testConfig.Clone()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  3. src/crypto/tls/tls_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	keyDER, err := x509.MarshalPKCS8PrivateKey(key)
    	if err != nil {
    		t.Fatal(err)
    	}
    	keyPEM := pem.EncodeToMemory(&pem.Block{Type: "PRIVATE KEY", Bytes: keyDER})
    	tmpl := &x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject:      pkix.Name{CommonName: "test"},
    	}
    	certDER, err := x509.CreateCertificate(rand.Reader, tmpl, tmpl, key.Public(), key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  4. pkg/apis/certificates/validation/validation_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package validation
    
    import (
    	"crypto/ed25519"
    	"crypto/rand"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/pem"
    	"fmt"
    	"math/big"
    	mathrand "math/rand"
    	"reflect"
    	"regexp"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  5. src/crypto/tls/common.go

    	// using x509.ParseCertificate to reduce per-handshake processing. If nil,
    	// the leaf certificate will be parsed as needed.
    	Leaf *x509.Certificate
    }
    
    // leaf returns the parsed leaf certificate, either from c.Leaf or by parsing
    // the corresponding c.Certificate[0].
    func (c *Certificate) leaf() (*x509.Certificate, error) {
    	if c.Leaf != nil {
    		return c.Leaf, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	}
    
    	template := x509.Certificate{
    		SerialNumber: serialNumber,
    		Subject: pkix.Name{
    			Organization: []string{"Acme Co"},
    		},
    		NotBefore: notBefore,
    		NotAfter:  notAfter,
    
    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  7. pkg/kubelet/apis/config/v1beta1/defaults_test.go

    				TLSPrivateKeyFile:  "",
    				TLSCipherSuites:    []string{},
    				TLSMinVersion:      "",
    				RotateCertificates: false,
    				ServerTLSBootstrap: false,
    				Authentication: v1beta1.KubeletAuthentication{
    					X509: v1beta1.KubeletX509Authentication{ClientCAFile: ""},
    					Webhook: v1beta1.KubeletWebhookAuthentication{
    						Enabled:  utilpointer.Bool(false),
    						CacheTTL: zeroDuration,
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 51K bytes
    - Viewed (0)
  8. pkg/kubelet/apis/config/v1beta1/zz_generated.conversion.go

    	if err := Convert_v1beta1_KubeletX509Authentication_To_config_KubeletX509Authentication(&in.X509, &out.X509, s); err != nil {
    		return err
    	}
    	if err := Convert_v1beta1_KubeletWebhookAuthentication_To_config_KubeletWebhookAuthentication(&in.Webhook, &out.Webhook, s); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  9. cmd/kubelet/app/server.go

    		},
    		CertFile: kc.TLSCertFile,
    		KeyFile:  kc.TLSPrivateKeyFile,
    	}
    
    	if len(kc.Authentication.X509.ClientCAFile) > 0 {
    		clientCAs, err := certutil.NewPool(kc.Authentication.X509.ClientCAFile)
    		if err != nil {
    			return nil, fmt.Errorf("unable to load client CA file %s: %w", kc.Authentication.X509.ClientCAFile, err)
    		}
    		// Specify allowed CAs for client certificates
    		tlsOptions.Config.ClientCAs = clientCAs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  10. src/crypto/tls/conn.go

    	peerCertificates []*x509.Certificate
    	// activeCertHandles contains the cache handles to certificates in
    	// peerCertificates that are used to track active references.
    	activeCertHandles []*activeCert
    	// verifiedChains contains the certificate chains that we built, as
    	// opposed to the ones presented by the server.
    	verifiedChains [][]*x509.Certificate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top