<p></p>
<p>An option you can try is to link the tls module of kamailio to the libssl static libs.<br>
I pushed a commit to tls Makefile to guide on such process:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/3e7278f28c43b830a197e2f7b212ec6f06e5acbf/hovercard" href="https://github.com/kamailio/kamailio/commit/3e7278f28c43b830a197e2f7b212ec6f06e5acbf"><tt>3e7278f</tt></a></li>
</ul>
<p>I tested a bit myself on Xenial and the libssl.a and libcrypto.a from the deb package are not compiled with -fPIC, so I had to download and compile libssl myself in a folder. I used the most recent 1.0.2u version (debs install 1.0.2a).</p>
<p>The process should be like:</p>
<ul>
<li>in kamailio soruce code folder, after applying the commit referenced above, edit src/modules/tls/Makefile and set:</li>
</ul>
<pre><code>   LIBSSL_STATIC = yes
   LIBSSL_STATIC_SRCLIB = yes
</code></pre>
<ul>
<li>download the sources of openssl v1.0.2u and place them in:</li>
</ul>
<pre><code>   /usr/local/src/openssl
</code></pre>
<ul>
<li>compile the openssl with next commands (do not install, only compile):</li>
</ul>
<pre><code>   ./config --shared

   make
</code></pre>
<ul>
<li>
<p>go back to kamailio sources and compile/install</p>
</li>
<li>
<p>the ldd on tls.so should not show any libssl/libcrypto, because they are part of the file now, like:</p>
</li>
</ul>
<pre><code>ldd src/modules/tls/tls.so
    linux-vdso.so.1 =>  (0x00007ffedfa9b000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc8b94d4000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc8b9dbb000
</code></pre>
<p>In this way, the system uses the default installed libssl, only Kamailio is using 1.0.2a.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2274#issuecomment-634578214">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPN7OOJJN5QQFYRAG3RTTVARANCNFSM4MBTEHRQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZO5FBNC3MQLXF65X23RTTVARA5CNFSM4MBTEHR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEXJOKJQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2274#issuecomment-634578214",
"url": "https://github.com/kamailio/kamailio/issues/2274#issuecomment-634578214",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>