[SR-Users] STIR/SHAKEN tests

David Villasmil david.villasmil.work at gmail.com
Thu May 27 19:58:17 CEST 2021


Hello guys,

I want to test secsipid, but i don't yet have the certificate. So i thought
i'd create a cert like:

openssl req -new -newkey rsa:4096 -nodes -keyout snakeoil.key -out
snakeoil.csr
openssl x509 -req -sha256 -days 365 -in snakeoil.csr -signkey snakeoil.key
-out snakeoil.pem

Then i'm simply doing:

$var(rc) = secsipid_add_identity("$fU", "$rU", "A", "", "
https://somedomain.com/stir/$rd/cert.pem
<https://kamailio.org/stir/$rd/cert.pem>", "/etc/kamailio/snakeoil.pem");
if ( $var(rc) ) {
    xlog("L_ERR", "[STIR/SHAKEN][$ci] Shaken authentication added (SIP
Identity Header created)\n");
} else {
    xlog("L_ERR", "[STIR/SHAKEN][$ci] Failed\n");
}

But no matter what i do it silently fails:

INVITE d54c2919-39b6-123a-95a7-0e29a5289b8d} <script>:
[STIR/SHAKEN][d54c2919-39b6-123a-95a7-0e29a5289b8d] Failed

I have debug on 6, but i don't get more info regarding the error.

Any ideas?

Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210527/579078be/attachment.htm>


More information about the sr-users mailing list