<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hey Marcin,<br>
<br>
I also came across this when implementing S/S. In RFC8224 4.1, it
suggests the parameter is optional and the default is assumed to be
ES256:<br>
<br>
<i>Second, the JSON key "alg" MUST mirror the value of the optional</i><i><br>
</i><i>"alg" parameter in the SIP Identity header field. Note that
if</i><i><br>
</i><i>the "alg" parameter is absent from the Identity header, the</i><i><br>
</i><i>default value is "ES256".</i><br>
<br>
In practice, I've seen traffic with and without this parameter but
have never run into any integration issues. IMO it's not really an
issue, but curious if it is causing you interop issues? Anyways,
here is a quick patch that I've used to force the "alg" param in the
Identity header (<a class="moz-txt-link-freetext" href="https://pastebin.com/AriqcThD">https://pastebin.com/AriqcThD</a>).<br>
<br>
Thanks,<br>
John<span data-mce-style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 11pt;" style="color:
rgb(128, 128, 128); font-family: arial, helvetica, sans-serif;
font-size: 11pt;"><strong></strong></span><br>
<span data-mce-style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 11pt;" style="color:
rgb(128, 128, 128); font-family: arial, helvetica, sans-serif;
font-size: 11pt;"><strong></strong></span>
<div class="moz-signature">
<div><span data-mce-style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 11pt;" style="color:
rgb(128, 128, 128); font-family: arial, helvetica, sans-serif;
font-size: 11pt;"><strong><br>
</strong></span></div>
</div>
<div class="moz-cite-prefix">On 1/5/22 5:34 PM, Marcin Groszek
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6cde971d-4bf2-daab-dc23-89372f9ff605@voipplus.net">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Version 3.1.5</p>
<p>When signature is generated it appears to be missing ;alg=ES256
after the info part containing url of a certificate,
ppt="shaken" is present on the end as it should.</p>
<p>Decoded header does contain "alg":"ES256" <br>
<span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap"></span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap"></span></p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Best Regards:
Marcin Groszek
Business Voip Resource.
<a class="moz-txt-link-freetext" href="http://www.voipplus.net" moz-do-not-send="true">http://www.voipplus.net</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>