<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/yeyang_AS">Ye Yang</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1280">#1280</a>
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">I have a CA bundle file added to <code>/etc/ssl/certs</code> that is used by the NGINX HTTPS reverse proxy setup on the machine and is unrelated to <code>git</code>.</p>
<p dir="auto">I have noticed that <code>git</code> (which uses <code>gnutls</code>) operations would fail if the bundle filename has more than 36 characters.</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto"><code>3.6.13-2ubuntu1.6</code></p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Ubuntu</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">Steps to Reproduce:</p>
<ul dir="auto">
<li>Add a CA bundle file with more than 36 characters, eg: <code>/etc/ssl/certs/star.staging.xxxx.eu.nginx.bundle.crt</code>
</li>
<li>Try to <code>git clone</code>
</li>
</ul>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight language-shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell">root@wiki-staging:~# ll /etc/ssl/certs/star.staging.xxxx.eu.nginx.bundle.crt </span>
<span id="LC2" class="line" lang="shell"><span class="nt">-rw-r--r--</span> 1 root root 7198 Oct 13 18:37 /etc/ssl/certs/star.staging.xxxx.eu.nginx.bundle.crt</span>
<span id="LC3" class="line" lang="shell">root@wiki-staging:~# git clone https://code.<span class="k">****</span>.pt/<span class="k">****</span>/<span class="k">****</span>.git</span>
<span id="LC4" class="line" lang="shell">Cloning into <span class="s1">'****'</span>...</span>
<span id="LC5" class="line" lang="shell">fatal: unable to access <span class="s1">'https://code.****.pt/****/****.git/'</span>: server certificate verification failed. CAfile: none CRLfile: none</span>
<span id="LC6" class="line" lang="shell">root@wiki-staging:~# </span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">If we change the file name from <code>star.staging.xxxx.eu.nginx.bundle.crt</code> (37 chars) to <code>star.staging.xxx.eu.nginx.bundle.crt</code> (36 chars) the <code>git</code> commands return to normal function.</p>
<pre class="code highlight js-syntax-highlight language-shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell">root@wiki-staging:~# <span class="nb">mv</span>  /etc/ssl/certs/star.staging.xxxx.eu.nginx.bundle.crt /etc/ssl/certs/star.staging.xxx.eu.nginx.bundle.crt</span>
<span id="LC2" class="line" lang="shell">root@wiki-staging:~# ll /etc/ssl/certs/star.staging.xxx.eu.nginx.bundle.crt</span>
<span id="LC3" class="line" lang="shell"><span class="nt">-rw-r--r--</span> 1 root root 7198 Oct 13 18:37 /etc/ssl/certs/star.staging.xxx.eu.nginx.bundle.crt</span>
<span id="LC4" class="line" lang="shell">root@wiki-staging:~# git clone https://code.<span class="k">****</span>.pt/<span class="k">****</span>/<span class="k">****</span>.git</span>
<span id="LC5" class="line" lang="shell">Cloning into <span class="s1">'****'</span>...</span>
<span id="LC6" class="line" lang="shell">remote: Counting objects: 13, <span class="k">done</span><span class="nb">.</span></span>
<span id="LC7" class="line" lang="shell">remote: Compressing objects: 100% <span class="o">(</span>11/11<span class="o">)</span>, <span class="k">done</span><span class="nb">.</span></span>
<span id="LC8" class="line" lang="shell">remote: Total 13 <span class="o">(</span>delta 1<span class="o">)</span>, reused 0 <span class="o">(</span>delta 0<span class="o">)</span></span>
<span id="LC9" class="line" lang="shell">Unpacking objects: 100% <span class="o">(</span>13/13<span class="o">)</span>, 3.49 KiB | 142.00 KiB/s, <span class="k">done</span><span class="nb">.</span></span>
<span id="LC10" class="line" lang="shell">root@wiki-staging:~# </span></code></pre>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1280">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/88e2fd0d9551f9710b928f865ef54a27/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1280"}}</script>


</p>
</div>
</body>
</html>