<h3>Description</h3>

<p>Ubuntu Bionic 18.04.02 LTS ships with "OpenSSL 1.1.1 11 Sep 2018" (0x1010100f), whereas the <code>kamailio-tls-modules</code> package is compiled with "OpenSSL 1.1.0g 2 Nov 2017" (0x1010007f).</p>
<p>I installed Kamailio from the Kamailio repositories (not from the Ubuntu repositories).</p>
<p>This leads to Kamailio being unable to start as it complains about the OpenSSL versions being too different from each other.</p>
<p>Overriding the OpenSSl version check by enabling <code>tls_force_run</code> does not solve the issue, instead, it leads to Kamailio emitting multiple errors.</p>

<h4>Reproduction</h4>
<p>I installed Kamailio from the official Kamailio apt sources (nightly build, the same occurs for the latest stable version 5.2).</p>
<pre><code>deb     http://deb.kamailio.org/kamailiodev-nightly bionic main
deb-src http://deb.kamailio.org/kamailiodev-nightly bionic main
</code></pre>
<p>I enabled TLS and edited the configuration files accordingly.</p>



<pre><code>(paste your debugging data here)
</code></pre>
<h4>Log Messages</h4>
<pre><code>CRITICAL: tls [tls_init.c:677]: init_tls_h(): installed openssl library version is too different from the library the kamailio tls module was compiled with: installed "OpenSSL 1.1.1  11 Sep 2018" (0x1010100f), compiled "OpenSSL 1.1.0g  2 Nov 2017" (0x1010007f).#012 Please make sure a compatible version is used (tls_force_run in kamailio.cfg will override this check)
</code></pre>

<h3>Possible Solutions</h3>
<p>Recompile and publish the <code>kamailio-tls-modules</code> package compiled with OpenSSL 1.1.1b.</p>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.3.0-dev6 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 7.3.0
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>Linux hostname 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
</code></pre>

<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/2018?email_source=notifications&email_token=ABO7UZILHI3M5HH3BPGQZQTQB2VXRA5CNFSM4IHQFYVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HB7S7SQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZM2C4HT3S4TNOMTPHTQB2VXRANCNFSM4IHQFYVA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZP4DJFE7REBO7PKLJDQB2VXRA5CNFSM4IHQFYVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HB7S7SQ.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/2018?email_source=notifications\u0026email_token=ABO7UZILHI3M5HH3BPGQZQTQB2VXRA5CNFSM4IHQFYVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HB7S7SQ",
"url": "https://github.com/kamailio/kamailio/issues/2018?email_source=notifications\u0026email_token=ABO7UZILHI3M5HH3BPGQZQTQB2VXRA5CNFSM4IHQFYVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HB7S7SQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>