<!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: #777;">
<a href="https://gitlab.com/GOODPWDCETCSZ">Chu Chen</a> created an issue:
</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">In the parsed certificate, there is no 'signature' in the part of tbsCertificate. 'signature' is a field of tbsCertificate in RFC 5280.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">4.1.2.3.  Signature</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">   This field contains the algorithm identifier for the algorithm used</span>
<span id="LC4" class="line" lang="plaintext">   by the CA to sign the certificate.</span>
<span id="LC5" class="line" lang="plaintext"></span>
<span id="LC6" class="line" lang="plaintext">   This field MUST contain the same algorithm identifier as the</span>
<span id="LC7" class="line" lang="plaintext">   signatureAlgorithm field in the sequence Certificate (Section</span>
<span id="LC8" class="line" lang="plaintext"></span>
<span id="LC9" class="line" lang="plaintext"></span>
<span id="LC10" class="line" lang="plaintext"></span>
<span id="LC11" class="line" lang="plaintext">Cooper, et al.              Standards Track                    [Page 19]</span>
<span id="LC12" class="line" lang="plaintext"></span>
<span id="LC13" class="line" lang="plaintext">RFC 5280            PKIX Certificate and CRL Profile            May 2008</span>
<span id="LC14" class="line" lang="plaintext"></span>
<span id="LC15" class="line" lang="plaintext"></span>
<span id="LC16" class="line" lang="plaintext">   4.1.1.2).  The contents of the optional parameters field will vary</span>
<span id="LC17" class="line" lang="plaintext">   according to the algorithm identified.  [RFC3279], [RFC4055], and</span>
<span id="LC18" class="line" lang="plaintext">   [RFC4491] list supported signature algorithms, but other signature</span>
<span id="LC19" class="line" lang="plaintext">   algorithms MAY also be supported.</span></code></pre>
<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">3.5.5</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 18.04 x64</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>certtool -i -infile path/to/cert_file</li>
</ul>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/d00ae05f13d9a2b054a3e7facf72e71e/cert-example-ie-cer48.zip" data-link="true" class="gfm">cert-example-ie-cer48.zip</a></p>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/00a6cde44c6406d63ffa8966cb5447bf/cert-example-ie-cer48.gnutls" data-link="true" class="gfm">cert-example-ie-cer48.gnutls</a></p>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">As RFC 5280, 'signature' in 'tbsCertificate' is parsed.</p>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/983">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/a6a5902eb7f7fbac032023bf82a796c2/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/983"}}</script>


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