Thanks Razvan. Installing the cryptography module fixed it - I was able to
run both -x tls rootCA and userCERT, and create the certificates.

However, when I start Opensips, I get the following error:
ERROR:tls_wolfssl:load_private_key: key
'/usr/local/etc/opensips/tls/server/privkey.pem' does not match the public
key of the certificate

I tried creating the certificates both on Centos 7 and Ubuntu Focal, and
they both gave the same error.
The data for the certificates comes from opensips-cli.cfg. I had created
certificates with that cfg 3 months ago, and used in Opensips script
without any issues.
 I only changed the domain name this time.

Any suggestions?
Thanks,
Matt


On Tue, Sep 26, 2023, 9:56 AM Răzvan Crainea <[email protected]> wrote:

> Can you double check whether you have the python-openssl or
> python-cryptography libraries?
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer / SIPhub CTO
> http://www.opensips-solutions.com / https://www.siphub.com
>
> On 9/26/23 16:38, L S wrote:
> > I'm trying to create certificates using opensips-cli:
> >
> > opensips-cli - f /usr/local/etc/opensips-cli.cfg -d -x tls rootCA
> > DEBUG: Skipping module 'tls' - excluded on purpose
> >
> > ERROR: No module 'tls' loaded
> >
> > Trying to find out why I am getting this message now - it used to work
> > fine. All other modules are loaded.
> >
> > Thaks,
> > Matt
> >
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to