crypto/tls: sending alert before ClientHello

42 views
Skip to first unread message

sfr...@google.com

unread,
May 31, 2017, 2:18:41 PM5/31/17
to golang-nuts

Hello everyone,

Is sending TLS alerts before ClientHello is in compliance with TLS standard?

Golang crypto/tls sends InternalAlert if it failed to get random bytes before starting handshake.


RFC5246 - TLSv1.2 says

7.4.1.2. Client Hello 
  
  When this message will be sent: 
  
    When a client first connects to a server, it is required to send
    the ClientHello as its first message. The client can also send a
    ClientHello in response to a HelloRequest or on its own initiative
    in order to renegotiate the security parameters in an existing
    connection.

but I wanted to double check before filing a bug.


Thanks

Reply all
Reply to author
Forward
0 new messages