<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Devang,</p>
<p>The error:</p>
<pre style="white-space:pre-wrap;color:rgb(0,0,0)">ERROR:stir_shaken:add_identity_hf: Failed to convert from DER to internal format</pre>
<p>may be a bit misleading as the private key and certificate must
be provided in PEM format to the stir_shaken_auth() function. The
DER format that the error refers to is used only internally, for
an intermediary step. On the other hand, you may get the same
error if the private key is not generated as an "prime256v1" EC
key.</p>
<p>Regarding the e164_strict_mode module parameter, the orig/dest
number should still be in E.164 format, except the leading '+'
sign, which is not required when the parameter is turned off. The
parameter is also related to the type of URI required (tel URI /
sip URI with the "user=phone" parameter).</p>
<p>Regards,</p>
<p>Vlad<br>
</p>
<pre class="moz-signature" cols="72">--
Vlad Patrascu
OpenSIPS Core Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 17.11.2021 17:27, Devang Dhandhalya
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAP0uOe-qniAG4G7vFYGB41C2jbg4ZCfk6Gsd7BSNoNNiF-YNXw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<pre style="white-space:pre-wrap;color:rgb(0,0,0)">hello all
Above E.164 Error still getting .Right now I'm getting the below error .
Can anyone tell me why I am getting this error ? as far as i know this
error for x5u parameter in stir_shaken_auth function , this issue coming
for certificate path or certificate file format .
I check the certificate file with .der and .cer format also .</pre>
<pre style="white-space:pre-wrap;color:rgb(0,0,0)"><p class="MsoNormal" style="font-family:helvetica,arial,sans-serif;font-size:14px;white-space:normal">Here is the code snippet used .</p>
<div>$var(rc_auth)=stir_shaken_auth("A", "GWID-123456","$var(cert)", "$var(pkey)","<a href="http://localhost/certificate.pem" target="_blank" moz-do-not-send="true">http://localhost/certificate.pem</a>","$var(orig)","$var(dest)");
</div><div>
</div>
Below Error i am getting .
ERROR:stir_shaken:add_identity_hf: Failed to convert from DER to internal format
ERROR:stir_shaken:w_stir_auth: Failed to add Identity header
STIR_SHAKEN AUTHENTICATION SERVICE return code : -1
<p class="MsoNormal" style="font-family:helvetica,arial,sans-serif;font-size:14px;white-space:normal">Kindly let me know if there is something wrong that I could be doing.
Many Thanks
Devang Dhandhalya</p></pre>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Nov 17, 2021 at 11:37
AM Devang Dhandhalya <<a
href="mailto:devang.dhandhalya@ecosmob.com"
moz-do-not-send="true">devang.dhandhalya@ecosmob.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hi All</div>
<div><br>
</div>
<div>I configured the e164 strict mode module parameter as 0
(disabled) . but still i am getting errors related to its
e164 format .While if orig/dest number is not in e164
format then also opensips have to accept it but it is not
accepting . I have a user like extension123 for this
function I have to perform authentication service . if i
have a user extension123 is it possible to perform
authenticate service for this kind of user ?</div>
<div><br>
</div>
<div>I think this is a bug for the e164 strict mode module
parameter . I am getting the below error .</div>
<div><br>
</div>
<div>opensips version : 3.2.2<br>
</div>
<div><br>
</div>
<div>ERROR :</div>
<div> ERROR:stir_shaken:check_passport_phonenum: number is
not in E.164 format: extension123</div>
ERROR:stir_shaken:w_stir_auth: failed to validate
Originator number (extension123)
<div><br>
</div>
<div><br>
</div>
loadmodule "stir_shaken.so"<br>
modparam("stir_shaken", "auth_date_freshness", 300)<br>
modparam("stir_shaken", "verify_date_freshness", 300)<br>
modparam("stir_shaken", "require_date_hdr", 0)<br>
modparam("stir_shaken", "e164_strict_mode", 0)<br>
<div><br>
</div>
<div>$var(orig) = $fU;<br>
$var(dest) = $tU<br>
</div>
<div> $var(rc_auth)=stir_shaken_auth("A",
"GWID-123456","$var(cert)", "$var(pkey)","<a
href="http://localhost/certificate.pem" target="_blank"
moz-do-not-send="true">http://localhost/certificate.pem</a>","$var(orig)","$var(dest)");<br>
</div>
<div><br>
</div>
<div>
<div>Please suggest a solution to this .</div>
</div>
<div><br>
</div>
<div>Many Thanks</div>
<div>Devang</div>
</div>
</blockquote>
</div>
<br>
<div><font style="background-color:white" size="2" face="Arial"
color="#808080"><b>Disclaimer</b></font></div>
<div>
<div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small">In
addition to generic Disclaimer which you have agreed on our
website, any views or opinions presented in this email are
solely those of the originator and do not necessarily
represent those of the Company or its sister concerns. Any
liability (in negligence, contract or otherwise) arising
from any third party taking any action, or refraining from
taking any action on the basis of any of the information
contained in this email is hereby excluded.</span></div>
</div>
<div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><br>
</span></div>
<div><font style="background-color:white" size="2" face="Arial"
color="#808080"><b>Confidentiality</b></font></div>
<div><font style="background-color:white" size="2" face="Arial"
color="#808080">This communication (including any
attachment/s) is intended only for the use of the addressee(s)
and contains information that is PRIVILEGED AND CONFIDENTIAL.
Unauthorized reading, dissemination, distribution, or copying
of this communication is prohibited. Please inform originator
if you have received it in error.</font></div>
<div><font style="background-color:white" size="2" face="Arial"
color="#808080"><br>
</font></div>
<div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><b>Caution
for viruses, malware etc.</b></span></div>
<div><font style="background-color:white" size="2" face="Arial"
color="#808080">This communication, including any attachments,
may not be free of viruses, trojans, similar or new
contaminants/malware, interceptions or interference, and may
not be compatible with your systems. You shall carry out
virus/malware scanning on your own before opening any
attachment to this e-mail. The sender of this e-mail and
Company including its sister concerns shall not be liable for
any damage that may incur to you as a result of viruses,
incompleteness of this message, a delay in receipt of this
message or any other computer problems. </font></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>
</body>
</html>