<div dir="ltr"><div dir="ltr"><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Hi,</p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">It looks like itunes would like to negotiate a weaker cipher suite using RSA key exchange.</p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Those ciphers are not supported by default but you can still configure ssl to support them:</p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt"><font face="Calibri, sans-serif"><span style="font-size:14.6667px">All = ssl:cipher_suites(all, 'tlsv1.2').</span></font></p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt"><font face="Calibri, sans-serif"><span style="font-size:14.6667px">Opts = [{ciphers, All}]. </span></font></p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt"><font face="Calibri, sans-serif"><span style="font-size:14.6667px">httpc:request(post,{"<a href="https://sandbox.itunes.apple.com/verifyReceipt">https://sandbox.itunes.apple.com/verifyReceipt</a>", [],"application/json", []}, [{ssl,Opts}], []).</span></font></p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt"><span style="font-family:Calibri,sans-serif;font-size:11pt"><br></span></p><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt"><span style="font-family:Calibri,sans-serif;font-size:11pt">BR/Peter</span><br></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><a name="_MailOriginal"><span lang="EN-US">-----Original
Message-----<br>
From: erlang-questions-bounces@erlang.org
<erlang-questions-bounces@erlang.org> On Behalf Of Xavier Robledo<br>
Sent: den 3 oktober 2018 23:35<br>
To: erlang-questions@erlang.org<br>
Subject: [erlang-questions] Problem in Erlang 21.0 and 21.1. Is this already
known?</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Hello I've run
into a problem with this code:</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">inets:start(),
ssl:start(), httpc:request(post, {"<a href="https://sandbox.itunes.apple.com/verifyReceipt"><span style="color:windowtext;text-decoration-line:none">https://sandbox.itunes.apple.com/verifyReceipt</span></a>", [], "application/json",
[]}, [], []).</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">It returns the
following error in the terminal:</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">=INFO REPORT====
3-Oct-2018::16:26:14.278110 ===</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">TLS client: In
state hello received SERVER ALERT: Fatal - Handshake Failure</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">{error,{failed_connect,[{to_address,{"<a href="http://sandbox.itunes.apple.com">sandbox.itunes.apple.com</a>",</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">                                     443}},</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">                       
{inet,[inet],{tls_alert,"handshake failure"}}]}}</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Does anyone know
if this is a known issue?</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">_______________________________________________</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">erlang-questions
mailing list</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><a href="mailto:erlang-questions@erlang.org"><span style="color:windowtext;text-decoration-line:none">erlang-questions@erlang.org</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><a href="http://erlang.org/mailman/listinfo/erlang-questions"><span style="color:windowtext;text-decoration-line:none">http://erlang.org/mailman/listinfo/erlang-questions</span></a></p></div></div>