[OpenSIPS-Users] Testing of opensips.cfg

Dovid Bender dovid at telecurve.com
Tue Jun 27 15:43:01 UTC 2023


Hi All,

We are trying to automate the update of our ssl certs. I tried by creating
a "bad" cert file. When I run "/usr/local/src/opensips/opensips -c
/usr/local/etc/opensips/opensips.cfg" it comes back clean as the config is
sane however when I try to restart OpenSipS it will obviously fail with:
Jun 27 15:37:53 wss-proxy.example.net
/usr/local/src/opensips/opensips[311900]:
ERROR:tls_openssl:tls_print_errstack: TLS errstack: error:09091064:PEM
routines:PEM_read_bio_ex:bad base64 decode
Jun 27 15:37:53 wss-proxy.example.net
/usr/local/src/opensips/opensips[311900]:
ERROR:tls_openssl:tls_print_errstack: TLS errstack: error:140DC009:SSL
routines:use_certificate_chain_file:PEM lib
Jun 27 15:37:53 wss-proxy.example.net
/usr/local/src/opensips/opensips[311900]:
ERROR:tls_openssl:load_certificate: unable to load certificate file
'/usr/local/etc/opensips/wss-proxy.example.net/cert3_bad.pem'
Jun 27 15:37:53 wss-proxy.example.net
/usr/local/src/opensips/opensips[311900]: ERROR:tls_mgm:init_tls_domains:
Failed to init TLS domain 'example'
Jun 27 15:37:53 wss-proxy.example.net
/usr/local/src/opensips/opensips[311900]: ERROR:core:init_mod: failed to
initialize module tls_mgm
Jun 27 15:37:53 wss-proxy.example.net
/usr/local/src/opensips/opensips[311900]: ERROR:core:main: error while
initializing modules

Is there anything I can do to check it see if on restart if OpenSipS will
fail?

TIA.

Dovid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230627/ac585613/attachment.html>


More information about the Users mailing list