[OpenSIPS-Users] Stir Shaken: Failed to load certificate
Vlad Patrascu
vladp at opensips.org
Mon Nov 21 12:22:12 UTC 2022
Hi Ryan,
You have to provide to the stir_shaken_auth() function the actual
content of the certificate file and not just the path. The same goes for
the private key.
Regards,
--
Vlad Patrascu
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 21.11.2022 14:02, ryan embgrets wrote:
> Greetings
>
> I am trying to generate an Identity header by using the stir_shaken
> module of the opensips.
>
> But I am encountering the below error each time upon call.
>
> Nov 21 11:15:20 local /usr/sbin/opensips[5051]:
> ERROR:stir_shaken:w_stir_verify: Failed to load certificate
> Nov 21 11:15:20 local /usr/sbin/opensips[5051]:
> ERROR:stir_shaken:load_cert: Failed to parse certificate
>
> #Module section.
> loadmodule "stir_shaken.so"
>
> route{
>
> $var(cert) = "/etc/opensips/certs.pem";
> $var(privKey) = "/etc/opensips/key.pem";
> stir_shaken_auth("A", "",$var(cert), $var(privKey),
> "https://domain.org/cert.pem");
> }
>
> Though the cert looks valid, has proper permission for the opensips to
> access them and cross checked with openssl for the verification.
>
> Any pointer on what might be causing this?
>
> Ryan
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list