<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Joseph, Thank you very much for your respond.</p>
<p><br>
</p>
<p>I have downloaded and apply new sti-ca file but certificate
validation fails.</p>
<p>INFO:stir_shaken:verify_callback: certificate validation failed:
certificate signature failure<br>
INFO:stir_shaken:w_stir_verify: Invalid certificate<br>
DBG:core:comp_scriptvar: int 26 : -8 / 0<br>
[1637] stir_shaken_verify() failed: 437, Unsupported Credential</p>
<p><br>
</p>
<p>Perhaps I am not processing the sti-ca file properly.</p>
<p><br>
</p>
<p>I am testing this with a valid token , in fact test calls are
coming from major cellular carrier in US and the verification
fails.</p>
<p>I can see curl download the public cert, storing it in local
cache and then attempt to verify, but it fails.</p>
<p>Upon next call with same token, the public cert is pulled from
local cache and still fails.</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 1/4/2023 7:37 PM, Joseph Jackson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CY8PR17MB6260D4CCA505D57957B2A211DBFA9@CY8PR17MB6260.namprd17.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);">Hi Marcin,</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);">We have a
process that downloads the CA list from iconectiv nightly,
decodes the jwt and stores the certs in a single file in
/etc/ssl/sti-ca/sti-ca.pem</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);">Here is the
opensips modparam</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="ContentPasted0">#stir and shaken
<div class="FluidPluginCopy ContentPasted0">loadmodule
"stir_shaken.so"</div>
<div class="FluidPluginCopy ContentPasted0">modparam("stir_shaken",
"verify_date_freshness", 300)</div>
<div class="FluidPluginCopy ContentPasted0">modparam("stir_shaken",
"auth_date_freshness", 300)</div>
<div class="FluidPluginCopy ContentPasted0">modparam("stir_shaken",
"e164_strict_mode", 0)</div>
<div class="FluidPluginCopy ContentPasted0">#list of root
certs for stir / shaken verification</div>
<div class="FluidPluginCopy ContentPasted0">modparam("stir_shaken",
"ca_list", "/etc/ssl/sti-ca/sti-ca.pem")</div>
<br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="ContentPasted0">This is on opensips v3.1.11</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="ContentPasted0"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri,
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0,
0, 0); background-color: rgb(255, 255, 255);"
class="ContentPasted0"><br>
</span></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b> Users
<a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org"><users-bounces@lists.opensips.org></a> on behalf of Marcin
Groszek <a class="moz-txt-link-rfc2396E" href="mailto:marcin@voipplus.net"><marcin@voipplus.net></a><br>
<b>Sent:</b> Wednesday, January 4, 2023 6:12 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Subject:</b> [OpenSIPS-Users] stir shaken verification</font>
<div> </div>
</div>
<div>
<p>Opensips version 3.1.5<br>
</p>
<p>I am having some issues with stir_shaken setup. I am sure
this not an issue with the module, but me.<br>
</p>
<p><code class="x_function">stir_shaken_auth works just fine and
I am able to sign the calls, however I was unable to find
any document how to use a ca file available for download at
iconectiv/download-list as well as via API. They do come in
as jwt file, but after little manipulation individual
certificates can be extracted, and the first one is the root
certificate; I think, and the rest are trusted STI-CA.
</code><code>I guess my question is how do I use this file or
any other cert file as
</code>"ca_list" and/or "ca_dir" . <br>
</p>
<p>After weeks and hundreds attempts I was unsuccessful, and I
was unable to locate any document explaining
preparation/setup/steps to setup verification.<br>
</p>
<p>All I get is : <br>
</p>
<p>ERROR:stir_shaken:load_cert: Failed to parse certificate<br>
ERROR:stir_shaken:w_stir_verify: Failed to load certificate<br>
on INVITE with valid identity header.<br>
</p>
<p>When I remove or replace "ca_list" file with something bogus
opensips does not even start with errors:</p>
<p>ERROR:stir_shaken:init_cert_validation: Failed to load
trustefd CAs<br>
ERROR:core:init_mod: failed to initialize module stir_shaken</p>
<p>I would really appreciate some guidance on this one.</p>
<p><br>
</p>
<p><code class="x_function"></code></p>
<p><code class="x_function"></code></p>
</div>
<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>
<pre class="moz-signature" cols="72">--
Best Regards:
Marcin Groszek
Business Phone Service
<a class="moz-txt-link-freetext" href="https://www.voipplus.net">https://www.voipplus.net</a></pre>
</body>
</html>