davidmoten / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail
Other
149 stars 40 forks source link

TLSv1 Record Layer: Handshake Protocol: Multiple Handshake Messages #5

Open 4wujun opened 6 years ago

4wujun commented 6 years ago

when i send(mail);

code: ... javaMailProperties.put("mail.smtp.ssl.enable", "true"); javaMailProperties.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); .... SimpleMailMessage mail = new SimpleMailMessage(); imail.setJavaMailProperties(javaMailProperties); .... imail.send(mail);

in the Wireshark:

1 Client Hello : TLSv1 Record Layer: Handshake Protocol: Client Hello 2 Server Hello : TLSv1 Record Layer: Handshake Protocol: Multiple Handshake Messages Content Type: Handshake (22) Version: TLS 1.0 (0x0301) Length: 1393 Handshake Protocol: Server Hello Handshake Protocol: Certificate Handshake Protocol: Server Hello Done 3 TLSv1 Record Layer: Alert (Level: Fatal, Description: Certificate Unknown)

but, i only want Server Hello : TLSv1 Record Layer: Handshake Protocol: Server Hello not Multiple Handshake Messages

how can i do?

java version "1.8.0_121"

davidmoten commented 5 years ago

Hi, this issue slipped my attention, sorry. I'm assuming that "multiple handshake messages" is a good thing generally because multiple parts (server hello and certificate) are sent in the same packet. Why do you want what you are asking for?