<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ciphermeter]]></title><description><![CDATA[Ciphermeter]]></description><link>https://ciphermeter.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 19:40:26 GMT</lastBuildDate><atom:link href="https://ciphermeter.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Checking your TLS configuration against BSI TR-02102-2 in CI (including the hybrid ML-KEM groups)]]></title><description><![CDATA[A GitHub Action that tests your own host against the German TLS guideline, version 2026-01 – what it checks, how, and where it stops.]]></description><link>https://ciphermeter.hashnode.dev/checking-your-tls-configuration-against-bsi-tr-02102-2-in-ci-including-the-hybrid-ml-kem-groups</link><guid isPermaLink="true">https://ciphermeter.hashnode.dev/checking-your-tls-configuration-against-bsi-tr-02102-2-in-ci-including-the-hybrid-ml-kem-groups</guid><category><![CDATA[TLS]]></category><category><![CDATA[GitHub Actions]]></category><category><![CDATA[Security]]></category><category><![CDATA[post quantum]]></category><category><![CDATA[Devops]]></category><dc:creator><![CDATA[Ciphermeter]]></dc:creator><pubDate>Mon, 30 Nov 2026 15:27:12 GMT</pubDate><content:encoded><![CDATA[<p>If you run servers for German public-sector customers, operators of critical infrastructure, or companies that fall under NIS2
in Germany, sooner or later someone will ask whether your TLS setup follows <strong>BSI TR-02102-2</strong>. It is the German Federal Office
for Information Security's technical guideline for TLS: which protocol versions, cipher suites, groups and signature schemes it
recommends, and until which year.</p>
<p>The guideline is a PDF. Its tables are precise, but they are not something a pipeline can read. So we turned them into JSON and
built a small GitHub Action on top.</p>
<h3>The rule set</h3>
<p><a href="https://github.com/ciphermeter/tr-02102-2-regelwerk"><code>tr-02102-2-2026-01.json</code></a> contains every table of version 2026-01
(27 January 2026): TLS versions, 51 TLS 1.2 suites, 3 TLS 1.3 suites, groups, signature schemes, PSK modes and minimum key
lengths. Each entry carries its IANA code point, RFC, the "recommended until" year and the exact location in the PDF
(section, table, page). A second, independent script re-extracts the PDF and compares every table, so the transfer can be
checked by anyone.</p>
<p>Example – TLS 1.2 suites that are still recommended on 1 January 2027:</p>
<pre><code class="language-sh">jq -r '.tls12_suiten[] | select(.bis &gt;= 2027) | "\(.iana) \(.name)"' tr-02102-2-2026-01.json
</code></pre>
<p>(The field names are German because the guideline is German; the values are standard IANA names.)</p>
<h3>The action</h3>
<pre><code class="language-yaml">name: TLS check
on:
  schedule:
    - cron: '0 6 * * 1'
  workflow_dispatch:

jobs:
  tls:
    runs-on: ubuntu-26.04
    steps:
      - id: tls
        uses: ciphermeter/tr-02102-2-regelwerk@v1
        with:
          host: www.example.org
          port: 443
          fail-on: fail
</code></pre>
<p>It needs no npm packages; it uses Node.js and <code>openssl</code> on the runner. For every feature it opens one handshake offering
exactly one value, and records the feature as <em>offered</em>, <em>rejected</em> or <em>not testable</em> (with a reason). A missing measurement
never counts as "not offered". It checks:</p>
<ul>
<li>protocol versions (TLS 1.0 to 1.3),</li>
<li>cipher suites for TLS 1.2 and 1.3,</li>
<li>groups for TLS 1.2 and 1.3, including the hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024,</li>
<li>TLS 1.3 signature schemes,</li>
<li>TLS 1.2 extensions (Extended Master Secret, secure renegotiation, compression, Encrypt-then-MAC for CBC suites),</li>
<li>the certificate: signature algorithm, key length, validity, name match, chain as seen by the runner.</li>
</ul>
<p>The result is <code>pass</code>, <code>warn</code> or <code>fail</code>. <code>fail</code> means at least one deviation from the guideline, each with its location in the
TR. <code>warn</code> covers things the TR does not regulate (expiring certificate, name mismatch) and deadlines that end this year.</p>
<h3>Three details that surprise people</h3>
<ol>
<li><strong>Unlisted is not insecure.</strong> X25519 on its own and ChaCha20-Poly1305 are not in the TR tables. The guideline says unlisted
algorithms are simply not recommended, not automatically insecure. The action reports them as a note, not as a deviation.</li>
<li><strong>Deadlines expire.</strong> In version 2026-01, the <code>rsa</code> signature algorithm for TLS 1.2 (table 7) and the <code>rsa_pkcs1_*</code> certificate
signatures (table 12) were recommended until 2025. Since 1 January 2026 they are no longer recommended – a check has to
evaluate the date, not just the list.</li>
<li><strong>Hybrid ML-KEM depends on Node's OpenSSL, not on the <code>openssl</code> binary.</strong> The hybrid groups can only be measured if the
Node.js runtime is linked against OpenSSL 3.5 or later (<code>node -p process.versions.openssl</code>). On older runners the action says
"not measurable" and marks the measurement as limited. <code>ubuntu-26.04</code> works.</li>
</ol>
<h3>Where it stops</h3>
<ul>
<li>It only makes normal TLS connections to the host and port you give it (at most 4 per second, 6 s timeout). No vulnerability
or load tests. Only check hosts you are responsible for.</li>
<li>One address is measured; a load balancer with differently configured backends is not fully covered.</li>
<li>PSK/SRP and static (EC)DH suites cannot be measured from outside.</li>
<li>It is not a BSI product and not endorsed by the BSI. Only the guideline itself is authoritative.</li>
</ul>
<p>One honest example: our own site runs on shared hosting, and its server also accepts <code>ffdhe2048</code> in TLS 1.3 – below the
guideline's 3000-bit minimum. The hoster configures groups server-wide. The action reports this for ciphermeter.com, and the
README says so.</p>
<h3>Links</h3>
<ul>
<li>Rule set and action: <a href="https://github.com/ciphermeter/tr-02102-2-regelwerk">https://github.com/ciphermeter/tr-02102-2-regelwerk</a> (Apache-2.0)</li>
<li>Marketplace: <a href="https://github.com/marketplace/actions/tls-check-against-bsi-tr-02102-2">https://github.com/marketplace/actions/tls-check-against-bsi-tr-02102-2</a></li>
<li>The tables in readable form (German): <a href="https://ciphermeter.com/tr-02102-2-tabellen.html">https://ciphermeter.com/tr-02102-2-tabellen.html</a></li>
</ul>
<p>If you need the result as a document for an audit, we also offer a German PDF report with remediation steps per finding
(<a href="https://ciphermeter.com/bestellen.html">https://ciphermeter.com/bestellen.html</a>). The action and the JSON stay free.</p>
<p>Issues and corrections are welcome in the repository.</p>
]]></content:encoded></item></channel></rss>