<html><body><div dir="ltr"><div>
  
  
  
    </div><div><div>
        
        <div dir="ltr">You would need to publish your code that somebody can debug it.</div><div dir="ltr"><br></div><div dir="ltr">Greetings</div><div dir="ltr">Bernd</div><div id="ms-outlook-mobile-signature"><div style="direction:ltr">-- </div><div style="direction:ltr">http://bernd.eckenfels.net</div></div>
    </div>
  

<div> </div><hr style="display:inline-block;width:98%" tabindex="-1"><div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif"><b>Von:</b> Filip Petr. <filipakanation@gmail.com><br><b>Gesendet:</b> Freitag, September 1, 2023 6:02 PM<br><b>An:</b> security-dev@openjdk.org <security-dev@openjdk.org>; ecki@zusammenkunft.net <ecki@zusammenkunft.net><br><b>Betreff:</b> Re: Modification of Client hello TLS packet<div> </div></font></div><div dir="ltr">This extension is my custom. It's the same extension that Google chrome added (<a href="https://datatracker.ietf.org/doc/html/rfc8701">https://datatracker.ietf.org/doc/html/rfc8701</a>). You can check this extension on your Chrome browser using this following URL <a href="https://tls.peet.ws/api/tls">https://tls.peet.ws/api/tls</a><br><br>I don't understand why this is an issue for my Java program? I checked in Wireshark and the hex values in this extension are exactly the same that my browser sends out. For example, the browser sends it out like this aa aa 00 01 00 and i send it out like this 0a 0a 00 01 00. The only difference is the first 2 bytes that are kind of random as per convention. I don't understand why my Java doesn't like this?<br>Only thing I did is added the tls grase .java file inside /security/ssl called (TLSGreaseExtension.java) with following content (<a href="https://pastebin.com/CepmN9YD">https://pastebin.com/CepmN9YD</a>) and added it inside SSLExtension.java (<a href="https://pastebin.com/6vXh7CKL">https://pastebin.com/6vXh7CKL</a>).<br><br>I don't see why it would throw an exception?<br></div>
</div></div></body></html>