<ul>
<li>New Feature</li>
<li>Changes Tested Locally</li>
</ul>
<p>This sel variable allows a kam script to get access to not just the peer certificate (at index 0), but when a certificate is successfully verified, the entire chain of certificates that were used to verify the peer certificate (at index 1, 2, 3, etc).</p>
<p>This functionality is provided by OpenSSL's SSL_get0_verified_chain() function, which is only available in OpenSSL 1.1.0+ (which is why there is an #if for this feature)</p>
<p>This is important when a server trusts many CAs - without this addition, I don't think that it is definitively possible to tell which CA signed the verified certificate, leading to security issues if one of the trusted CAs was compromised and was used to sign certificates that look like they were signed by another issuing CA.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/2289'>https://github.com/kamailio/kamailio/pull/2289</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>tls: add sel for tls verified cert chain (requires OpenSSL 1.1+)</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2289/files#diff-7b47a91a8044bc43f4b785a9e0777f27">src/modules/tls/tls_select.c</a>
    (121)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/2289.patch'>https://github.com/kamailio/kamailio/pull/2289.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/2289.diff'>https://github.com/kamailio/kamailio/pull/2289.diff</a></li>
</ul>

<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/pull/2289">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKP3FGCWPM4OHJRH3LRM745HANCNFSM4MKP7RFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMXVRAAWQY5BCP5LJTRM745HA5CNFSM4MKP7RF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4I656RBQ.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/pull/2289",
"url": "https://github.com/kamailio/kamailio/pull/2289",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>