Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for OCSPStaple (0.24 sec)

  1. src/crypto/tls/ticket.go

    		b.AddUint8(0)
    	}
    	if s.EarlyData {
    		b.AddUint8(1)
    	} else {
    		b.AddUint8(0)
    	}
    	marshalCertificate(&b, Certificate{
    		Certificate:                 certificatesToBytesSlice(s.peerCertificates),
    		OCSPStaple:                  s.ocspResponse,
    		SignedCertificateTimestamps: s.scts,
    	})
    	b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
    		for _, chain := range s.verifiedChains {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_messages.go

    					return
    				}
    				if certificate.OCSPStaple != nil {
    					b.AddUint16(extensionStatusRequest)
    					b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) {
    						b.AddUint8(statusTypeOCSP)
    						b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
    							b.AddBytes(certificate.OCSPStaple)
    						})
    					})
    				}
    				if certificate.SignedCertificateTimestamps != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server.go

    		}
    	}
    
    	hs.masterSecret = hs.sessionState.secret
    
    	return nil
    }
    
    func (hs *serverHandshakeState) doFullHandshake() error {
    	c := hs.c
    
    	if hs.clientHello.ocspStapling && len(hs.cert.OCSPStaple) > 0 {
    		hs.hello.ocspStapling = true
    	}
    
    	hs.hello.ticketSupported = hs.clientHello.ticketSupported && !c.config.SessionTicketsDisabled
    	hs.hello.cipherSuite = hs.suite.id
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_client_test.go

    	// SignedCertificateTimestamps populated as usual
    	if !bytes.Equal(ccs.OCSPResponse, serverConfig.Certificates[0].OCSPStaple) {
    		t.Errorf("client ConnectionState contained unexpected OCSPResponse: wanted %v, got %v",
    			serverConfig.Certificates[0].OCSPStaple, ccs.OCSPResponse)
    	}
    	if !reflect.DeepEqual(ccs.SignedCertificateTimestamps, serverConfig.Certificates[0].SignedCertificateTimestamps) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_client_tls13.go

    		c.sendAlert(alertDecodeError)
    		return errors.New("tls: received empty certificates message")
    	}
    
    	c.scts = certMsg.certificate.SignedCertificateTimestamps
    	c.ocspResponse = certMsg.certificate.OCSPStaple
    
    	if err := c.verifyServerCertificate(certMsg.certificate.Certificate); err != nil {
    		return err
    	}
    
    	// certificateVerifyMsg is included in the transcript, but not until
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. pilot/pkg/xds/sds.go

    				},
    			},
    			PrivateKey: &core.DataSource{
    				Specifier: &core.DataSource_InlineBytes{
    					InlineBytes: certInfo.Key,
    				},
    			},
    		}
    		if certInfo.Staple != nil {
    			tlsCertificate.OcspStaple = &core.DataSource{
    				Specifier: &core.DataSource_InlineBytes{
    					InlineBytes: certInfo.Staple,
    				},
    			}
    		}
    		res = protoconv.MessageToAny(&envoytls.Secret{
    			Name: name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. src/crypto/tls/handshake_messages_test.go

    	for i := 0; i < rand.Intn(2)+1; i++ {
    		m.certificate.Certificate = append(
    			m.certificate.Certificate, randomBytes(rand.Intn(500)+1, rand))
    	}
    	if rand.Intn(10) > 5 {
    		m.ocspStapling = true
    		m.certificate.OCSPStaple = randomBytes(rand.Intn(100)+1, rand)
    	}
    	if rand.Intn(10) > 5 {
    		m.scts = true
    		for i := 0; i < rand.Intn(2)+1; i++ {
    			m.certificate.SignedCertificateTimestamps = append(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_server_tls13.go

    	certMsg := new(certificateMsgTLS13)
    
    	certMsg.certificate = *hs.cert
    	certMsg.scts = hs.clientHello.scts && len(hs.cert.SignedCertificateTimestamps) > 0
    	certMsg.ocspStapling = hs.clientHello.ocspStapling && len(hs.cert.OCSPStaple) > 0
    
    	if _, err := hs.c.writeHandshakeRecord(certMsg, hs.transcript); err != nil {
    		return err
    	}
    
    	certVerifyMsg := new(certificateVerifyMsg)
    	certVerifyMsg.hasSignatureAlgorithm = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. src/crypto/tls/common.go

    	// signature algorithms the PrivateKey can be used for.
    	SupportedSignatureAlgorithms []SignatureScheme
    	// OCSPStaple contains an optional OCSP response which will be served
    	// to clients that request it.
    	OCSPStaple []byte
    	// SignedCertificateTimestamps contains an optional list of Signed
    	// Certificate Timestamps which will be served to clients that request it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  10. src/crypto/tls/tls_test.go

    			}
    			config.Certificates[0].Certificate = [][]byte{testRSACertificate}
    			config.Certificates[0].PrivateKey = testRSAPrivateKey
    			config.Certificates[0].SignedCertificateTimestamps = scts
    			config.Certificates[0].OCSPStaple = ocsp
    
    			ss, cs, err := testHandshake(t, config, config)
    			if err != nil {
    				t.Fatalf("Handshake failed: %v", err)
    			}
    
    			if ss.Version != v || cs.Version != v {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
Back to top