<div dir="ltr"><div>You need to insert the certificate contents into the table rather than a file, to my understanding - you'd probably want to convert the certs to PEM format prior to doing this.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 25 May 2021 at 14:20, Saurabh Chopra <<a href="mailto:saurabhc@3clogic.com">saurabhc@3clogic.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"><font face="verdana, sans-serif">Hi Opensips Team/Razvan,</font><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">I am using the TLS_MGM module to validate my certificate file through a database (mysql) but getting the below error. </font></div><div><br></div><div><font face="times new roman, serif">May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]: NOTICE:tls_mgm:init_tls_dom: no crl for tls, using none<br>May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]: <b>ERROR:tls_mgm:load_certificate_db: Unable to load certificate from buffer</b><br>May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]: WARNING:tls_mgm:init_tls_domains: Failed to init TLS domain 'default', skipping...</font><br></div><div><br></div><div><font face="verdana, sans-serif">The data i have put in DB is depicted below:-</font></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">insert into tls_mgm (id,domain,match_ip_address,match_sip_domain,type,method,verify_cert,require_cert,certificate,private_key,crl_check_all,crl_dir,ca_list,ca_dir,<br>cipher_list,dh_params,ec_curve) values ('1','default','20.0.xx.xx:443','','1','SSLv23','1','0','xxxx2021.der','xxxx.der','0','','xxxxx2021.der','','ALL','','');<br></font></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif"><b>.der</b> files are the binary file for certificate file, private key file and ca_list . However the same is working fine through the configuration script.
</font></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">Can anybody confirm what I am doing wrong
?</font></div><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Best Regards<div>Saurabh Chopra</div><div>+918861979979</div></div></div></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
<br>
<p dir="ltr" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font size="3" face="Verdana"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p><div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><img src="https://www.x-on.co.uk/email/footer/banner-03-2021.jpg"></div><div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><br></div><div><div><div><font size="4" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><b><sup><font face="Verdana">0333 332 0000 | <a href="https://www.x-on.co.uk" target="_blank">x-on.co.uk</a> | <sub> </sub></font></sup></b></font><font size="4" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><b><sub><sup><font face="Verdana"><a href="https://www.linkedin.com/company/x-on" target="_blank"><img src="http://www.x-on.co.uk//images/icon/linkedin.png" width="24" height="24"></a> <a href="https://www.facebook.com/XonTel" target="_blank"><img src="http://www.x-on.co.uk//images/icon/facebook.png" width="24" height="24"></a> <a href="https://twitter.com/xonuk" target="_blank"><img src="http://www.x-on.co.uk//images/icon/twitter.png" width="24" height="24"></a></font></sup></sub> </b></font><b style="font-family:Arial,Helvetica,sans-serif;font-size:large"><sup><font face="Verdana"> | <a href="https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm" target="_blank">Coronavirus</a></font></sup></b><b style="font-size:16.9px"><sup><font face="Verdana"> | <a href="https://practiceindex.co.uk/gp/x-on" target="_blank">Practice Index Reviews</a></font></sup></b><br><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-family:Verdana;font-size:8px"><a href="http://www.itspa.org.uk/itspa-awards" target="_blank">THE ITSPA AWARDS 2020</a> AND Best ITSP - Mid Market, Best Software and Best Vertical Solution are trade marks of the Internet Telephony Services Providers' Association, used under licence.</span></p><p><font face="Verdana" color="#ff0000" size="1"><b>Our new office address: 22 Riduna Park, Melton IP12 1QT.</b></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:6.0pt;font-family:Verdana;color:black">X-on
is a trading name of Storacall Technology Ltd a limited company registered in
England and Wales.<br>
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.<br>
The information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately on <span>+44(0)333 332 0000</span> and delete the<br>message from your computer. If you are not a named addressee you must not use,
disclose, disseminate, distribute, copy, print or reply to this email. </span><span style="font-size:6.0pt;font-family:Verdana;color:black">Views
or opinions expressed by an individual<br>within this email may not necessarily
reflect the views of X-on or its associated companies. Although X-on routinely
screens for viruses, addressees should scan this email and any attachments<br>for
viruses. X-on makes no representation or warranty as to the absence of viruses
in this email or any attachments.</span></p>
<p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span><font size="2"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span></font></p></div></div></div>