<font color="#222222" face="arial, sans-serif"><div style="white-space:nowrap"><br></div><div><div><span style="white-space:nowrap">Hi All,</span></div><div><span style="white-space:nowrap"><br></span></div><div><span style="white-space:nowrap">I have 5 domains with big TLS certficates like each domain has more than 8K bytes of certificates. I have observed that the kamailio taking quite amount of time to  initialize.</span></div>
<div><span style="white-space:nowrap"><br></span></div><div><span style="white-space:nowrap">I looked at the code and found that the SSL_CONTEXT is initialized for each process. Why can&#39;t we use the same SSL_CONTEXT for all process. This will speed up the init time.</span></div>
<div><span style="white-space:nowrap"><br></span></div><div><span style="white-space:nowrap">I changed using single SSL context for all process and initialization was very fast.</span></div><div><span style="white-space:nowrap"><br>
</span></div><div><span style="white-space:nowrap">According to my understanding on a new TLS connection SSL structure for a connection shall copy all the data from SSL_CTXT. So there is no sharing of resource here, as SSL_CTXT is readable for all process. So why we have to create SSL_CTXT for each process.  </span></div>
<div><span style="white-space:nowrap"><br></span></div><div><span style="white-space:nowrap">Please let me know if any particular reason to do it. </span></div><div><span style="white-space:nowrap"><br></span></div><div><span style="white-space:nowrap"><br>
</span></div><div><span style="white-space:nowrap">Thanks</span></div><div><span style="white-space:nowrap">Jijo</span></div></div></font>