<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: PKI security</title>
    <description>The latest articles on DEV Community by PKI security (@pki-channnel).</description>
    <link>https://dev.to/pki-channnel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4134970%2Ffc27163b-3c3c-411c-a9c5-169d8d46b82c.png</url>
      <title>DEV Community: PKI security</title>
      <link>https://dev.to/pki-channnel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pki-channnel"/>
    <language>en</language>
    <item>
      <title>Why localhost can be a secure context without HTTPS—and what your local test does not prove</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Wed, 25 Nov 2026 12:34:58 +0000</pubDate>
      <link>https://dev.to/pki-channnel/why-localhost-can-be-a-secure-context-without-https-and-what-your-local-test-does-not-prove-1dje</link>
      <guid>https://dev.to/pki-channnel/why-localhost-can-be-a-secure-context-without-https-and-what-your-local-test-does-not-prove-1dje</guid>
      <description>&lt;p&gt;You open an app at &lt;code&gt;http://localhost:8000&lt;/code&gt; and a browser feature that requires a secure context works. Does that mean the local connection is using HTTPS? No. The browser's classification and the transport protocol are different things.&lt;/p&gt;

&lt;p&gt;This distinction matters when you use local success as evidence that an application is ready to deploy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvxarb9dmdbtnstqnar0c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvxarb9dmdbtnstqnar0c.png" alt="Browsers can treat loopback HTTP as potentially trustworthy. That does not turn HTTP into TLS. HTTPS needs TLS and suitable certificate validation. A local trust choice is not public trust. Use the approved development setup. Protect test CA keys and avoid distributing shared private keys. Check the deployed hostname, certificate chain, HTTPS dependencies and supported clients." width="800" height="1400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conceptual illustration. Follow the four checks in order; the diagram reports no measured test result.&lt;/p&gt;

&lt;h2&gt;
  
  
  A secure context is not a synonym for TLS
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Secure_Contexts" rel="noopener noreferrer"&gt;MDN's secure-context documentation&lt;/a&gt; lists loopback addresses and localhost names among potentially trustworthy origins. This allows some local development scenarios without requiring an HTTPS connection.&lt;/p&gt;

&lt;p&gt;The URL &lt;code&gt;http://localhost:8000&lt;/code&gt; is still an HTTP URL. The classification does not add a TLS handshake or a certificate to that connection. Feature availability also depends on the browser, document context and the API's own requirements.&lt;/p&gt;

&lt;p&gt;For a diagnostic observation, &lt;code&gt;window.isSecureContext&lt;/code&gt; reports whether the current window is a secure context. Record the URL, browser and context alongside its value. Do not relabel that value as “certificate validation passed.”&lt;/p&gt;

&lt;h2&gt;
  
  
  Local HTTPS tests something additional
&lt;/h2&gt;

&lt;p&gt;If you need to exercise HTTPS-specific behavior, configure a separate local HTTPS environment using your team's approved process. The server needs suitable TLS configuration and a certificate that the client can validate for the intended name.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://letsencrypt.org/docs/certificates-for-localhost/" rel="noopener noreferrer"&gt;Let's Encrypt explains&lt;/a&gt; why it does not issue certificates for the name localhost. Local development may instead use a self-signed certificate or a local CA under controlled trust settings. That trust is specific to the environment; it does not make the certificate acceptable to ordinary visitors' devices.&lt;/p&gt;

&lt;p&gt;There is no need to distribute one shared private key to every developer or to disable verification globally. Protect development CA keys and keep their scope limited. Trust-store changes deserve an explicit team procedure, particularly on devices also used for ordinary browsing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep three observations in separate rows
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Observation&lt;/th&gt;
&lt;th&gt;What it supports&lt;/th&gt;
&lt;th&gt;What it does not prove&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A browser API works on local HTTP&lt;/td&gt;
&lt;td&gt;That API worked in the observed local context&lt;/td&gt;
&lt;td&gt;TLS was used&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A local HTTPS connection validates&lt;/td&gt;
&lt;td&gt;The local client accepted that connection under its settings&lt;/td&gt;
&lt;td&gt;Public clients trust the deployed site&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A production connection validates&lt;/td&gt;
&lt;td&gt;The observed hostname and client passed those checks&lt;/td&gt;
&lt;td&gt;Every client and every backend path was tested&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Production adds a real hostname, deployed certificate chain, network paths and client populations. The name checks described by &lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525&lt;/a&gt; remain relevant: making a local name work does not establish that the certificate covers the production name.&lt;/p&gt;

&lt;p&gt;Before deployment, list the actual hostname, expected certificate, clients to test and HTTPS dependencies such as scripts and API endpoints. Record which checks ran and which remain pending. A mixed-content problem can appear in deployment even when the local application seemed fine.&lt;/p&gt;

&lt;p&gt;PKI Channel's Japanese-language &lt;a href="https://pki-channel.com/ja/articles/what-is-https-tls?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b049-1"&gt;HTTPS and TLS guide&lt;/a&gt; illustrates transport protection. Its &lt;a href="https://pki-channel.com/ja/articles/tls-certificate-validation?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b049-2"&gt;certificate-validation walkthrough&lt;/a&gt; shows the checks that a local development exception should not be mistaken for.&lt;/p&gt;

&lt;p&gt;This article describes test boundaries. It does not report a browser matrix or a production deployment test.&lt;/p&gt;




&lt;p&gt;AI was used for research assistance, writing and illustration.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>A matching SHA-256 checksum is useful only with a trustworthy reference</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Mon, 23 Nov 2026 13:40:01 +0000</pubDate>
      <link>https://dev.to/pki-channnel/a-matching-sha-256-checksum-is-useful-only-with-a-trustworthy-reference-43od</link>
      <guid>https://dev.to/pki-channnel/a-matching-sha-256-checksum-is-useful-only-with-a-trustworthy-reference-43od</guid>
      <description>&lt;p&gt;You download an installer and find a SHA-256 string next to the download button. Your local hash matches. What have you learned?&lt;/p&gt;

&lt;p&gt;You have evidence that your file matches the bytes represented by that digest, assuming a correct calculation. You have not independently established who published the file if an attacker could replace both the installer and the digest on the same page. A checksum needs a trusted reference to support a publisher decision. &lt;a href="https://csrc.nist.gov/pubs/fips/180-4/upd1/final" rel="noopener noreferrer"&gt;NIST FIPS 180-4 — Secure Hash Standard&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Calculate without running the download
&lt;/h2&gt;

&lt;p&gt;For a file named &lt;code&gt;package.zip&lt;/code&gt;, OpenSSL provides a portable example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl dgst -sha256 package.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On PowerShell, the corresponding built-in operation is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FileHash&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Algorithm&lt;/span&gt; &lt;span class="no"&gt;SHA256&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;LiteralPath&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;package&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zip&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compare the digest value, not the filename printed beside it. Check that the release page specifies SHA-256, the same version, the same operating system and the same architecture. A Linux archive and a Windows installer should not be expected to share a hash.&lt;/p&gt;

&lt;p&gt;For a visual explanation of what a digest can and cannot establish, PKI Channel’s &lt;a href="https://pki-channel.com/ja/articles/what-is-hash" rel="noopener noreferrer"&gt;hash guide (Japanese)&lt;/a&gt; separates data comparison from the trustworthiness of the reference value.&lt;/p&gt;

&lt;h2&gt;
  
  
  A mismatch is a stop signal, not a diagnosis
&lt;/h2&gt;

&lt;p&gt;Possible explanations include an incomplete download, the wrong release asset, a changed file or malicious replacement. The mismatch alone does not tell you which explanation is true.&lt;/p&gt;

&lt;p&gt;Write down the expected value, observed value, release version and source URL. Revisit the publisher's official release instructions. Do not “repair” the test by editing the expected digest to match the file you already have.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Observation&lt;/th&gt;
&lt;th&gt;Reasonable conclusion&lt;/th&gt;
&lt;th&gt;Unsupported conclusion&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hash differs&lt;/td&gt;
&lt;td&gt;The bytes do not match this reference&lt;/td&gt;
&lt;td&gt;An attacker definitely changed it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash matches a trusted release record&lt;/td&gt;
&lt;td&gt;The bytes match that record&lt;/td&gt;
&lt;td&gt;The software has no vulnerabilities&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash matches an unknown mirror's record&lt;/td&gt;
&lt;td&gt;File and mirror record agree&lt;/td&gt;
&lt;td&gt;The publisher approved the file&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Where signatures add value
&lt;/h2&gt;

&lt;p&gt;A digital signature lets a verifier check data using a public key associated with the signer. The remaining question is how that public key became trusted. Fetching a key from the same untrusted message as the signature does not settle the publisher's identity. &lt;a href="https://csrc.nist.gov/pubs/fips/186-5/final" rel="noopener noreferrer"&gt;NIST FIPS 186-5 — Digital Signature Standard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Different ecosystems use different signature formats and trust distribution. Follow the publisher's documented verifier instead of copying an OpenSSL command for an unrelated format. A detached signature, a signed package and an operating-system code signature are not interchangeable files.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://pki-channel.com/ja/articles/what-is-code-signing#meaning" rel="noopener noreferrer"&gt;code-signature verification guide (Japanese)&lt;/a&gt; explains the additional publisher and integrity checks, along with their limits. It helps answer what a signature adds after the checksum comparison.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small local observation
&lt;/h2&gt;

&lt;p&gt;In the accompanying local exercise, a signature verified for the bytes &lt;code&gt;release=1&lt;/code&gt; followed by a newline. Changing the digit to &lt;code&gt;2&lt;/code&gt; produced an &lt;code&gt;InvalidSignature&lt;/code&gt; result. The two SHA-256 values also differed. This demonstrates sensitivity to a byte change, not the identity or safety of a real publisher. The observation was recorded on 2026-10-30 using Python 3.12.14 and cryptography 50.0.2 in an offline local exercise; it was not a test of a real publisher.&lt;/p&gt;

&lt;p&gt;For a team, keep the original release metadata with the downloaded artifact, including the approved source and verification method. That record turns “I checked the hash” into a statement another person can actually evaluate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://csrc.nist.gov/pubs/fips/180-4/upd1/final" rel="noopener noreferrer"&gt;NIST FIPS 180-4 — Secure Hash Standard&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://csrc.nist.gov/pubs/fips/186-5/final" rel="noopener noreferrer"&gt;NIST FIPS 186-5 — Digital Signature Standard&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.openssl.org/3.5/man1/openssl-dgst/" rel="noopener noreferrer"&gt;OpenSSL 3.5 dgst&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cybersecurity</category>
      <category>security</category>
    </item>
    <item>
      <title>Test an HTTPS server before changing DNS with curl --resolve</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Sat, 21 Nov 2026 14:37:13 +0000</pubDate>
      <link>https://dev.to/pki-channnel/test-an-https-server-before-changing-dns-with-curl-resolve-i63</link>
      <guid>https://dev.to/pki-channnel/test-an-https-server-before-changing-dns-with-curl-resolve-i63</guid>
      <description>&lt;p&gt;You are moving a service to a new server. DNS still points to the old one, and opening the new IP address produces a certificate error. That error may be entirely expected: a certificate for &lt;code&gt;app.example.com&lt;/code&gt; does not automatically identify an IP address.&lt;/p&gt;

&lt;p&gt;For a controlled migration test, keep the real hostname in the URL and override where curl connects. This lets you test the new destination without changing public DNS or disabling certificate verification.&lt;/p&gt;

&lt;h2&gt;
  
  
  One request with a temporary resolution rule
&lt;/h2&gt;

&lt;p&gt;The addresses below are documentation examples. Replace them with your own authorized endpoint and its real destination IP.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl --noproxy &lt;span class="s1"&gt;'*'&lt;/span&gt; --resolve app.example.com:443:192.0.2.10 --connect-timeout 10 --max-time 20 -I https://app.example.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The resolution rule applies to the specified hostname and port. The URL still carries &lt;code&gt;app.example.com&lt;/code&gt;, so curl can use that hostname for TLS identity checking and the HTTP request. The override lasts for this invocation. &lt;a href="https://curl.se/docs/manpage.html" rel="noopener noreferrer"&gt;curl manual&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;--noproxy '*'&lt;/code&gt; makes this example a direct connection. Use it only where your network permits direct access. If your environment requires a proxy, investigate its routing behavior instead of assuming this command tests the intended server.&lt;/p&gt;

&lt;p&gt;If the request fails, PKI Channel’s &lt;a href="https://pki-channel.com/en/articles/tls-chain-debugging" rel="noopener noreferrer"&gt;TLS debugging checklist&lt;/a&gt; helps separate the requested hostname, the server’s certificate list and the client’s trust decision. Preserve those observations before changing another condition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the common alternatives differ
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attempt&lt;/th&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Open &lt;code&gt;https://192.0.2.10/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The URL asks to verify an IP identity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add only an HTTP Host header&lt;/td&gt;
&lt;td&gt;The HTTP header does not by itself set the TLS name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Use &lt;code&gt;--insecure&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The test no longer establishes normal certificate validation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Use &lt;code&gt;--resolve&lt;/code&gt; with the hostname URL&lt;/td&gt;
&lt;td&gt;Destination changes while the intended hostname remains&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;TLS negotiation happens before the HTTP request is processed. A virtual host can therefore select a certificate before it sees your manually supplied HTTP header. Name resolution, SNI, certificate identity and HTTP routing belong to related but distinct parts of the request. &lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt; / &lt;a href="https://www.rfc-editor.org/rfc/rfc8446.html" rel="noopener noreferrer"&gt;RFC 8446 — TLS 1.3&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What to record before the DNS switch
&lt;/h2&gt;

&lt;p&gt;Record the exact command, destination address, time, curl version and response. Check the certificate identity and the application response separately. A HEAD request may return &lt;code&gt;405 Method Not Allowed&lt;/code&gt; on an application that does not support HEAD. That is different from a failed TLS handshake.&lt;/p&gt;

&lt;p&gt;For an application test, request a small known public health resource according to your service's design. Avoid sending production credentials to a candidate environment until its identity and intended data handling have been established.&lt;/p&gt;

&lt;p&gt;Repeat the request for each candidate destination. If one address serves an old certificate while another serves the new one, changing DNS may expose users to inconsistent behavior. A single successful request is not evidence about every node.&lt;/p&gt;

&lt;p&gt;The pre-cutover result becomes easier to reuse with a &lt;a href="https://pki-channel.com/en/articles/pki-inventory" rel="noopener noreferrer"&gt;certificate, deployment and observation inventory&lt;/a&gt;. Keep the test IP and the later public endpoint as separate observations so the earlier success does not silently stand in for the cutover check.&lt;/p&gt;

&lt;h2&gt;
  
  
  After the cutover
&lt;/h2&gt;

&lt;p&gt;Run a normal request without &lt;code&gt;--resolve&lt;/code&gt; from relevant client locations. The override test answered “does this address serve the intended hostname?” The normal request answers “where do clients actually go now?” Keep both results in the migration record.&lt;/p&gt;

&lt;p&gt;This technique does not validate authoritative DNS, all caches, every geographic route or a CDN's managed certificate behavior. It gives you a narrow, useful test whose connection target and identity are explicit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://curl.se/docs/manpage.html" rel="noopener noreferrer"&gt;curl manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc8446.html" rel="noopener noreferrer"&gt;RFC 8446 — TLS 1.3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cli</category>
      <category>devops</category>
      <category>infrastructure</category>
      <category>networking</category>
    </item>
    <item>
      <title>A CSR is a request, so check the issued certificate before deploying it</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Thu, 19 Nov 2026 06:14:12 +0000</pubDate>
      <link>https://dev.to/pki-channnel/a-csr-is-a-request-so-check-the-issued-certificate-before-deploying-it-joa</link>
      <guid>https://dev.to/pki-channnel/a-csr-is-a-request-so-check-the-issued-certificate-before-deploying-it-joa</guid>
      <description>&lt;p&gt;Generating a Certificate Signing Request can feel like the last difficult step in setting up HTTPS. The CA returns a file, and the temptation is to deploy it immediately. Before deployment, compare what you requested with what you actually received.&lt;/p&gt;

&lt;p&gt;A CSR carries a public key and requested information, protected by a signature made with the corresponding private key. It is not itself a CA-issued certificate, and a valid CSR signature does not establish ownership of every requested name. &lt;a href="https://www.rfc-editor.org/rfc/rfc2986.html" rel="noopener noreferrer"&gt;RFC 2986 — PKCS #10 requests&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Write the intended service names first
&lt;/h2&gt;

&lt;p&gt;For a small application, the list might be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Required: example.com
Required: www.example.com
Not needed: admin.example.com
Not needed: every future subdomain
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This list is a design input. Adding a wildcard simply because it is convenient expands the set of names the certificate can represent. It also changes which validation methods may be available.&lt;/p&gt;

&lt;p&gt;PKI Channel’s &lt;a href="https://pki-channel.com/ja/articles/what-is-csr" rel="noopener noreferrer"&gt;CSR structure and creation walkthrough (Japanese)&lt;/a&gt; shows the public information inside a request and the private key that stays with its owner. Use that boundary when deciding what to send to the issuer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect the request and the result
&lt;/h2&gt;

&lt;p&gt;With OpenSSL 3.5, these commands read the files without submitting anything to a CA:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl req -in request.csr -noout -verify -text
openssl x509 -in issued.pem -noout -subject -issuer -dates -ext subjectAltName
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CSR text can contain internal naming information, so do not paste it into a public issue without reviewing it. It should not contain the private key. Keep the private-key file separate from the request you send.&lt;/p&gt;

&lt;p&gt;For the issued certificate, compare SAN entries with the intended names. Do not use the human-readable subject name as a substitute for service identity checking. Modern service identity rules rely on the appropriate subject alternative identifiers. &lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt; / &lt;a href="https://docs.openssl.org/3.5/man1/openssl-x509/" rel="noopener noreferrer"&gt;OpenSSL 3.5 — openssl-x509&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A review table for the handoff
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Evidence to keep&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Does the certificate cover the actual URLs?&lt;/td&gt;
&lt;td&gt;Required hostname list and SAN comparison&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Is it usable at the intended deployment time?&lt;/td&gt;
&lt;td&gt;Not-before and not-after values with timezone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does it match the retained private key?&lt;/td&gt;
&lt;td&gt;Public-key comparison performed locally&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can clients build a trusted path?&lt;/td&gt;
&lt;td&gt;Required chain and approved trust configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who deploys and reloads it?&lt;/td&gt;
&lt;td&gt;Named service owner and deployment procedure&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The CA's approval completes an issuance step. It does not choose the right file path in your reverse proxy or reload your process for you.&lt;/p&gt;

&lt;p&gt;For a broader handoff, the &lt;a href="https://pki-channel.com/ja/articles/csr-best-practices" rel="noopener noreferrer"&gt;before-and-after issuance checklist (Japanese)&lt;/a&gt; adds ownership and stop conditions to the name comparison. It can help turn a one-time CSR review into a repeatable acceptance step.&lt;/p&gt;

&lt;h2&gt;
  
  
  A common naming mistake
&lt;/h2&gt;

&lt;p&gt;A request for &lt;code&gt;*.example.com&lt;/code&gt; is not a request for every possible name below the organization. The wildcard covers one label in the permitted position. It does not cover &lt;code&gt;a.b.example.com&lt;/code&gt;, and it does not itself cover &lt;code&gt;example.com&lt;/code&gt;. If the root domain is needed, include it explicitly according to the CA's workflow. &lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Renewal repeats the comparison
&lt;/h2&gt;

&lt;p&gt;Do not assume a later issuance has the same SAN list or key merely because its filename is unchanged. Automated systems can change keys, configuration or validation details. Make the required hostname list part of deployment checks.&lt;/p&gt;

&lt;p&gt;For a beginner, the useful distinction is concrete: the request expresses intent, the returned certificate expresses what was issued, and the live connection shows what clients actually receive. Check all three before declaring the setup complete.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc2986.html" rel="noopener noreferrer"&gt;RFC 2986 — PKCS #10 requests&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.openssl.org/3.5/man1/openssl-x509/" rel="noopener noreferrer"&gt;OpenSSL 3.5 — openssl-x509&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc5280.html" rel="noopener noreferrer"&gt;RFC 5280 — Certificates and CRLs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cybersecurity</category>
      <category>infrastructure</category>
      <category>security</category>
    </item>
    <item>
      <title>A Python TLS probe that keeps certificate verification enabled</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Thu, 12 Nov 2026 06:42:25 +0000</pubDate>
      <link>https://dev.to/pki-channnel/a-python-tls-probe-that-keeps-certificate-verification-enabled-18fl</link>
      <guid>https://dev.to/pki-channnel/a-python-tls-probe-that-keeps-certificate-verification-enabled-18fl</guid>
      <description>&lt;p&gt;A script that works only after setting &lt;code&gt;verify=False&lt;/code&gt; has lost an important part of its connection check. Before changing trust settings, make the failure observable: which host did the program contact, which name did it verify, and did it reach the TLS handshake?&lt;/p&gt;

&lt;p&gt;This example uses Python's standard library. It opens one connection to a service you are authorized to test, performs a TLS handshake, prints a few certificate fields, and exits. It does not send an HTTP request or change the operating system's trust store.&lt;/p&gt;

&lt;h2&gt;
  
  
  The complete probe
&lt;/h2&gt;

&lt;p&gt;Save this as &lt;code&gt;tls_probe.py&lt;/code&gt;. Pass a hostname, without &lt;code&gt;https://&lt;/code&gt; or a path.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ssl&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;

&lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"www.python.org"&lt;/span&gt;
&lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ssl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_default_context&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;wrap_socket&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;server_hostname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;tls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;cert&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tls&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getpeercert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"TLS:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tls&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SAN:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"subjectAltName"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Not after:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"notAfter"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;ssl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SSLCertVerificationError&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Certificate verification failed:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;verify_message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;OSError&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ssl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SSLError&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Connection or TLS failure:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python tls_probe.py www.python.org
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;create_default_context()&lt;/code&gt; supplies client verification defaults. &lt;code&gt;server_hostname&lt;/code&gt; supplies the intended DNS name for hostname checking and, where applicable, SNI. Do not replace it with an arbitrary name obtained from the certificate: the name must come from the service you meant to reach. &lt;a href="https://docs.python.org/3/library/ssl.html" rel="noopener noreferrer"&gt;Python ssl documentation&lt;/a&gt; / &lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To turn a failed probe into a useful report, PKI Channel’s &lt;a href="https://pki-channel.com/en/articles/tls-chain-debugging" rel="noopener noreferrer"&gt;TLS chain debugging checklist&lt;/a&gt; shows which client, network and certificate observations to preserve before changing the trust configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the outcome
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Outcome&lt;/th&gt;
&lt;th&gt;What it establishes&lt;/th&gt;
&lt;th&gt;Next step&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TLS version and fields printed&lt;/td&gt;
&lt;td&gt;This Python context accepted this connection&lt;/td&gt;
&lt;td&gt;Check the application separately&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Certificate verification failed&lt;/td&gt;
&lt;td&gt;Certificate validation rejected the peer&lt;/td&gt;
&lt;td&gt;Record the exact message, name and runtime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DNS, timeout or connection error&lt;/td&gt;
&lt;td&gt;The connection did not reach a usable TLS session&lt;/td&gt;
&lt;td&gt;Check name resolution, routing and service availability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Other TLS error&lt;/td&gt;
&lt;td&gt;TLS negotiation failed for another reason&lt;/td&gt;
&lt;td&gt;Compare protocol support and server configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Successful output is not an HTTP health check. A server can present an acceptable certificate and still return an application error. Conversely, a network timeout is not evidence that its certificate has expired.&lt;/p&gt;

&lt;h2&gt;
  
  
  A private CA without a global change
&lt;/h2&gt;

&lt;p&gt;If the service intentionally uses an organizational CA, obtain the approved CA file through your administrator. Add this line after creating the context:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load_verify_locations&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cafile&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"organization-ca.pem"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This adds trust material to this context. Verify the CA's origin before using it. Downloading whatever certificate an unknown server presents and treating it as a trust anchor does not establish its identity.&lt;/p&gt;

&lt;p&gt;For a scheduled probe, the &lt;a href="https://pki-channel.com/en/articles/pki-monitoring#pki-observation-title" rel="noopener noreferrer"&gt;certificate monitoring decision map&lt;/a&gt; adds the distinction between a failed connection, a missing observation and a certificate approaching expiry. That distinction helps keep an empty result from becoming a healthy status.&lt;/p&gt;

&lt;h2&gt;
  
  
  Useful limits of this probe
&lt;/h2&gt;

&lt;p&gt;This script makes a direct socket connection. It does not automatically reproduce your browser's HTTP proxy configuration. That difference matters on corporate networks. Python and its linked OpenSSL version also affect behavior, so record &lt;code&gt;python --version&lt;/code&gt; and &lt;code&gt;ssl.OPENSSL_VERSION&lt;/code&gt; with a bug report.&lt;/p&gt;

&lt;p&gt;The probe is a documented example, not a claim that your endpoint has been tested. A useful report includes the hostname, UTC time, runtime version, exact error and network location. Those details give the next person a reproducible problem without asking them to weaken verification.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.python.org/3/library/ssl.html" rel="noopener noreferrer"&gt;Python ssl documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;AI was used to assist with research and drafting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>code</category>
      <category>networking</category>
      <category>python</category>
      <category>security</category>
    </item>
    <item>
      <title>cert-manager 1.21.3: what a trust-store update means for your cluster</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Wed, 04 Nov 2026 22:52:41 +0000</pubDate>
      <link>https://dev.to/pki-channnel/cert-manager-1213-what-a-trust-store-update-means-for-your-cluster-20i0</link>
      <guid>https://dev.to/pki-channnel/cert-manager-1213-what-a-trust-store-update-means-for-your-cluster-20i0</guid>
      <description>&lt;p&gt;The cert-manager project released &lt;a href="https://github.com/cert-manager/cert-manager/releases/tag/v1.21.3" rel="noopener noreferrer"&gt;v1.21.3 on October 23, 2026&lt;/a&gt;. Among other changes, it updates base images to remove the &lt;strong&gt;emSign ECC Root CA - G3&lt;/strong&gt; root certificate and uses Go 1.26.10, whose &lt;code&gt;crypto/x509&lt;/code&gt; rejects chains through the compromised intermediates described by the release. The project recommends that all users upgrade.&lt;/p&gt;

&lt;p&gt;This is a good moment to map which component trusts which CA. Updating the controller image is not equivalent to updating the trust stores of every application, ingress proxy, browser, or workload in the cluster. Likewise, an affected connection is not established merely because a cluster uses cert-manager: its actual peer chain and the trust configuration of the component making the connection matter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxekoi2ye39zf0rq4l65y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxekoi2ye39zf0rq4l65y.png" alt="Trust boundaries: separate cert-manager's own trust from application trust" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiogzi2di17cggsto1kvt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiogzi2di17cggsto1kvt.png" alt="Trust sources and connection checks" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foz72v3fyfyct79upwg79.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foz72v3fyfyct79upwg79.png" alt="Upgrade review and renewal checks" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Three other changes in the same release
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://github.com/cert-manager/cert-manager/releases/tag/v1.21.3" rel="noopener noreferrer"&gt;release notes&lt;/a&gt; also describe:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;ARI renewal loop fix.&lt;/strong&gt; Stale renewal information from the previous certificate could trigger repeated issuance until a CA rate limit was reached. The fix tracks the certificate ID and re-fetches renewal information for a new certificate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Next private-key Secret ownership.&lt;/strong&gt; The issuance controllers now check that the designated Secret has the expected label and is owned by the Certificate before consuming it. The release describes a scenario requiring permission to write the &lt;code&gt;certificates/status&lt;/code&gt; subresource.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proxy values in Helm.&lt;/strong&gt; Proxy environment values are quoted during rendering, avoiding manifest breakage from values such as a wildcard pattern.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Those are distinct issues; a single “certificate bug” label would hide which evidence an operator needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical review before upgrading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Inventory the cert-manager controller version, deployment method and Kubernetes version. Check the &lt;a href="https://cert-manager.io/docs/releases/" rel="noopener noreferrer"&gt;project’s supported-release table&lt;/a&gt; and vendor guidance where a distribution manages upgrades.&lt;/li&gt;
&lt;li&gt;Identify outbound connections made by cert-manager components, such as configured ACME or Vault endpoints. For each one, determine the chain and actual trust source before drawing conclusions about impact. &lt;a href="https://pki-channel.com/ja/commands/certificate-chain/" rel="noopener noreferrer"&gt;PKI Channel’s OpenSSL chain guide&lt;/a&gt; (Japanese) separates certificates sent by the peer from the independently trusted root, and shows hostname verification. Its OpenSSL result does not establish which trust store cert-manager actually uses.&lt;/li&gt;
&lt;li&gt;Read the release notes and applicable upgrade notes, then render and validate your own configuration in a non-production environment. Pay particular attention to proxy settings and Secret ownership assumptions.&lt;/li&gt;
&lt;li&gt;Exercise a representative issuance and renewal in that environment; verify the Secret and certificate presented by the intended endpoint. A successful controller rollout alone does not prove the application loaded a new certificate. If issuance stops or the endpoint still serves an older certificate, &lt;a href="https://pki-channel.com/ja/runbooks/cert-manager-renewal-stalled/" rel="noopener noreferrer"&gt;PKI Channel’s renewal runbook&lt;/a&gt; (Japanese) traces Certificate and CertificateRequest through the applicable ACME objects, then compares the Secret with the endpoint.&lt;/li&gt;
&lt;li&gt;Track failures, rollback conditions and the owner of each downstream connection. Do not restore a removed trust anchor merely to suppress an error; investigate the affected chain and use the vendor’s current incident guidance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are suggested checks, not tests performed for this article. The upstream release notes remain the source for the release-specific changes.&lt;/p&gt;




&lt;p&gt;AI assistance was used to draft the text and create the illustrations. The release-specific claims were checked against the upstream release notes; the suggested tests were not performed for this article.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>go</category>
      <category>kubernetes</category>
      <category>security</category>
    </item>
    <item>
      <title>Read a TLS certificate expiry check without turning every failure into expired</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Sat, 31 Oct 2026 13:55:01 +0000</pubDate>
      <link>https://dev.to/pki-channnel/read-a-tls-certificate-expiry-check-without-turning-every-failure-into-expired-1kfm</link>
      <guid>https://dev.to/pki-channnel/read-a-tls-certificate-expiry-check-without-turning-every-failure-into-expired-1kfm</guid>
      <description>&lt;p&gt;A certificate monitor that reports “expired” whenever a command fails will eventually send you on the wrong investigation. A missing file, a TLS handshake failure and a certificate approaching its expiry are different observations.&lt;/p&gt;

&lt;p&gt;Start with a file you already know represents the certificate you intend to monitor. Later, add a separate acquisition step for the live endpoint. Keeping those steps distinct makes failures explainable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the file before checking the threshold
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl x509 &lt;span class="nt"&gt;-in&lt;/span&gt; server.pem &lt;span class="nt"&gt;-noout&lt;/span&gt; &lt;span class="nt"&gt;-dates&lt;/span&gt; &lt;span class="nt"&gt;-ext&lt;/span&gt; subjectAltName
openssl x509 &lt;span class="nt"&gt;-in&lt;/span&gt; server.pem &lt;span class="nt"&gt;-noout&lt;/span&gt; &lt;span class="nt"&gt;-checkend&lt;/span&gt; 604800
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;604800&lt;/code&gt; is seven days in seconds. The &lt;code&gt;-checkend&lt;/code&gt; option checks whether the certificate expires within that interval and uses a nonzero exit status when it will. The display command gives you the actual dates and names to record. &lt;a href="https://docs.openssl.org/3.5/man1/openssl-x509/" rel="noopener noreferrer"&gt;OpenSSL 3.5 — openssl-x509&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do not infer the reason from a nonzero status alone. A parse error also prevents a useful check. Verify that the input can be read, preserve standard error, and classify an unusable input as unknown.&lt;/p&gt;

&lt;p&gt;PKI Channel’s &lt;a href="https://pki-channel.com/en/articles/pki-monitoring#pki-observation-title" rel="noopener noreferrer"&gt;monitoring decision map&lt;/a&gt; provides a useful model for the states below: a missing measurement and a failed TLS probe need their own investigation paths, separate from the remaining lifetime.&lt;/p&gt;

&lt;h2&gt;
  
  
  A monitoring result needs a state
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;State&lt;/th&gt;
&lt;th&gt;Evidence&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Readable, beyond threshold&lt;/td&gt;
&lt;td&gt;Parsed dates and a successful threshold check&lt;/td&gt;
&lt;td&gt;Record the observation time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Readable, inside threshold&lt;/td&gt;
&lt;td&gt;Parsed expiry and threshold result&lt;/td&gt;
&lt;td&gt;Investigate renewal before the remaining time runs out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Input unavailable or invalid&lt;/td&gt;
&lt;td&gt;Fetch or parse error&lt;/td&gt;
&lt;td&gt;Repair observation and investigate the endpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong identity&lt;/td&gt;
&lt;td&gt;SAN does not cover the intended name&lt;/td&gt;
&lt;td&gt;Investigate routing or configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An “unknown” state is operationally useful. It says the monitor lacks evidence, rather than inventing a healthy or expired result. Decide separately when persistent unknown observations should page an operator.&lt;/p&gt;

&lt;h2&gt;
  
  
  The disk file may not be the served certificate
&lt;/h2&gt;

&lt;p&gt;Suppose renewal writes a new certificate to disk, but a process still holds the old one in memory. Monitoring only the file can report a healthy future expiry while clients receive the old certificate. A CDN adds another possible certificate owner.&lt;/p&gt;

&lt;p&gt;For endpoint monitoring, record the hostname, port, network location and certificate obtained from that connection. Validate the peer according to the intended trust configuration. An expiry date extracted from an unverified connection is an observation, not proof of the endpoint's authenticated identity. &lt;a href="https://www.rfc-editor.org/rfc/rfc8446.html" rel="noopener noreferrer"&gt;RFC 8446 — TLS 1.3&lt;/a&gt; / &lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To choose an alert threshold, use the &lt;a href="https://pki-channel.com/en/articles/short-lived-certificates" rel="noopener noreferrer"&gt;short-lived certificate operations guide&lt;/a&gt; to work backward from detection, retry, deployment and recovery time. A fixed number of days is only useful when the team can complete that work within it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing the threshold
&lt;/h2&gt;

&lt;p&gt;Seven days is an example, not a universal recommendation. Work backward from the time needed to detect a failed update, reach the responsible person, repair validation, deploy the replacement and confirm it from the client side. If that process takes longer than your alert window, a technically correct monitor will still warn too late.&lt;/p&gt;

&lt;p&gt;Keep the issued certificate's full lifetime separate from the remaining lifetime at observation time. Shorter issuance limits do not tell you exactly when a particular certificate will expire.&lt;/p&gt;

&lt;h2&gt;
  
  
  A record worth retaining
&lt;/h2&gt;

&lt;p&gt;Store observation time, target, expiry, remaining time, state, collection error and owner. Avoid overwriting the last known expiry with a blank value when collection fails. Preserve the old observation with its timestamp and add a new unknown result. That makes a gap visible without pretending stale data is current.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.openssl.org/3.5/man1/openssl-x509/" rel="noopener noreferrer"&gt;OpenSSL 3.5 — openssl-x509&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc8446.html" rel="noopener noreferrer"&gt;RFC 8446 — TLS 1.3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9525.html" rel="noopener noreferrer"&gt;RFC 9525 — Service Identity in TLS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>beginners</category>
    </item>
    <item>
      <title>ARI gives your ACME client a renewal window, not a deployment receipt</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Thu, 29 Oct 2026 14:52:12 +0000</pubDate>
      <link>https://dev.to/pki-channnel/ari-gives-your-acme-client-a-renewal-window-not-a-deployment-receipt-2fjm</link>
      <guid>https://dev.to/pki-channnel/ari-gives-your-acme-client-a-renewal-window-not-a-deployment-receipt-2fjm</guid>
      <description>&lt;p&gt;A certificate renewal job often starts from a local timer. ACME Renewal Information, or ARI, adds a way for the CA to suggest when a certificate should be renewed. The useful operational question is what your system does with that suggestion and what evidence it records afterward.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/8dwvh8jv7vnegx7xiy9e.png" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7ndp1bi2u05lpfi52ait.png" alt="CA advice: The CA supplies a suggested renewal window through ARI. Client action: The client schedules renewal and records failures or fallback. Deployment: Retrieve, deploy and reload the resulting certificate. Readback: Observe the certificate served on the intended connection." width="800" height="668"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Operational design; no ARI renewal has been executed for this article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat the window as scheduling input
&lt;/h2&gt;

&lt;p&gt;RFC 9773 defines ARI so an ACME server can communicate a suggested renewal window. A client can use that information when choosing when to renew. This allows the CA and client to coordinate beyond a fixed local fraction of certificate lifetime.&lt;/p&gt;

&lt;p&gt;First verify that the CA and the installed client version support the extension. A documentation page about ARI does not establish that a particular scheduled job is using it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Observe the client’s actual behavior
&lt;/h2&gt;

&lt;p&gt;Record which certificate was considered, when renewal information was checked, the suggested window and the chosen action. Include failures to retrieve information and the fallback behavior.&lt;/p&gt;

&lt;p&gt;Avoid creating a dashboard that reports missing renewal information as a successful “no action needed” result. Unknown and failed retrievals deserve their own states.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep issuance and deployment separate
&lt;/h2&gt;

&lt;p&gt;After a renewal order succeeds, the certificate still needs to reach every relevant TLS terminator. The server may need a reload, and the external connection needs a readback check. ARI does not perform those application-specific steps for you.&lt;/p&gt;

&lt;p&gt;A renewal receipt should therefore include certificate retrieval, deployment targets, reload outcome and the certificate actually observed on a fresh connection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design a small failure exercise
&lt;/h2&gt;

&lt;p&gt;In a test environment, ask what happens when the client is offline during part of the suggested window, when retrieval fails, and when issuance succeeds but deployment fails. Use the client’s official testing mechanisms and avoid repeated production orders.&lt;/p&gt;

&lt;p&gt;This article proposes the observation fields, not a measured ARI success rate. The improvement is knowing whether the scheduling signal became a working deployed certificate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9773.html" rel="noopener noreferrer"&gt;RFC 9773: ACME Renewal Information&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc8555.html" rel="noopener noreferrer"&gt;RFC 8555: ACME&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Further reading on PKI Channel
&lt;/h2&gt;

&lt;p&gt;The following Japanese-language guides add diagrams and operational detail to the questions discussed above.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/acme-ari-operations?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b108-1"&gt;ACME ARI：更新推奨期間・再試行・配信確認 (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/acme-renewal-deployment-design?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b108-2"&gt;ACME更新運用：発行・配置・reload・配信確認 (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;AI was used for research assistance, writing and illustration. Examples and checklists are explanatory, not reported lab results.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>security</category>
    </item>
    <item>
      <title>WebAuthn has an origin and an RP ID. Keep both in your design notes</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Wed, 28 Oct 2026 11:04:53 +0000</pubDate>
      <link>https://dev.to/pki-channnel/webauthn-has-an-origin-and-an-rp-id-keep-both-in-your-design-notes-2cdk</link>
      <guid>https://dev.to/pki-channnel/webauthn-has-an-origin-and-an-rp-id-keep-both-in-your-design-notes-2cdk</guid>
      <description>&lt;p&gt;When adding passkeys, developers encounter both the browser origin and the relying party identifier, or RP ID. They are related but serve different checks. WebAuthn calls a registration or authentication interaction a ceremony; the word refers to that exchange between the application, browser and authenticator. A clear integration note helps prevent a working demo from becoming a loosely scoped production login.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/yeacj9108k9esqiq0evo.png" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgugifj5rhhxr3nk3vf58.png" alt="Origin: Server policy lists the web origins accepted for the ceremony. RP ID: Credentials are scoped to the relying party under browser rules. Server checks: Verify challenge, signature and required user verification." width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conceptual WebAuthn review; not an implementation or conformance test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Name the web application precisely
&lt;/h2&gt;

&lt;p&gt;An origin includes scheme, host and port. The server verifies the origin in the client data against the origins it accepts for the ceremony. An RP ID scopes the credential to the relying party under WebAuthn’s rules.&lt;/p&gt;

&lt;p&gt;Do not reduce both values to “our domain” in documentation. That phrase hides whether a development port, a production subdomain or another application is included.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let the browser enforce its part
&lt;/h2&gt;

&lt;p&gt;The browser mediates access to credentials and enforces RP ID constraints. The authenticator signs data tied to the ceremony. The server still has its own checks, including the challenge and expected origin, and should use a well-maintained WebAuthn library.&lt;/p&gt;

&lt;p&gt;A browser prompt appearing is not proof that the server verified every required field correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate local experiments from deployment policy
&lt;/h2&gt;

&lt;p&gt;List the actual registration and authentication origins for development, staging and production. Decide which service owns each account namespace and credential record. Avoid broad exceptions added only to make a demo work across environments.&lt;/p&gt;

&lt;p&gt;If a deployment requires related-origin functionality or cross-device flows, follow the current standard and library guidance rather than inventing string-matching rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use a reviewable ceremony checklist
&lt;/h2&gt;

&lt;p&gt;Record challenge creation and one-time use, expected origins, RP ID, credential lookup, signature verification and user verification requirements. Then test rejection cases as well as a successful login.&lt;/p&gt;

&lt;p&gt;The aim is a small configuration contract, not a custom implementation of cryptography. Passkeys reduce important phishing risks through scoping, but an application must preserve those boundaries in its server-side checks and account recovery design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.w3.org/TR/webauthn-3/" rel="noopener noreferrer"&gt;W3C: WebAuthn Level 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://fidoalliance.org/passkeys/" rel="noopener noreferrer"&gt;FIDO Alliance: Passkeys&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Further reading on PKI Channel
&lt;/h2&gt;

&lt;p&gt;The following Japanese-language guides add diagrams and operational detail to the questions discussed above.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/fido2-webauthn-ctap-passkey?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b107-1"&gt;FIDO2・WebAuthn・CTAP・パスキーの関係を一枚で理解する (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/why-passkeys-are-phishing-resistant?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b107-2"&gt;パスキーはなぜフィッシングに強いのか。防げない攻撃も解説 (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;AI was used for research assistance, writing and illustration. Examples and checklists are explanatory, not reported lab results.&lt;/p&gt;

</description>
      <category>security</category>
    </item>
    <item>
      <title>Decoding a JWT is not validating it: a beginner’s acceptance checklist</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Mon, 26 Oct 2026 14:07:17 +0000</pubDate>
      <link>https://dev.to/pki-channnel/decoding-a-jwt-is-not-validating-it-a-beginners-acceptance-checklist-3cle</link>
      <guid>https://dev.to/pki-channnel/decoding-a-jwt-is-not-validating-it-a-beginners-acceptance-checklist-3cle</guid>
      <description>&lt;p&gt;JWT means JSON Web Token: a format for carrying claims, such as statements about a subject or recipient. Many JWT debugging tools display a readable payload immediately. This is useful for learning the structure, but readable claims have not necessarily been authenticated. Before using a claim to grant access, identify the token type and apply a validation policy designed for that use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/kbrsy88v3f3vp8i2voax.png" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fobosq81mevarahh2c5t6.png" alt="Decode: Read the structure; readable claims are still untrusted. Verify: Use an approved key and an allowed algorithm. Validate: Check issuer, audience, time and the intended token use. Authorize: Apply application permissions after token validation." width="800" height="668"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Acceptance checklist; no production token is shown.&lt;/p&gt;

&lt;h2&gt;
  
  
  Distinguish the envelope
&lt;/h2&gt;

&lt;p&gt;A commonly encountered JWT uses JWS (JSON Web Signature) to protect integrity. Its encoded payload can be readable without a secret. Encryption is a separate mechanism, such as JWE. Do not put sensitive information into a signed token on the assumption that the signature hides it.&lt;/p&gt;

&lt;p&gt;Avoid pasting real access tokens into public debugging websites. A bearer token can grant access even when its payload seems uninteresting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choose policy before inspecting attacker-controlled fields
&lt;/h2&gt;

&lt;p&gt;The verifier should know which algorithms, issuers and audiences it accepts. Do not let an untrusted token redefine that policy simply by declaring an algorithm or naming a key. Use a maintained library and the framework’s supported integration path.&lt;/p&gt;

&lt;p&gt;Successful signature verification is one gate. The application must also decide whether this token was issued for this recipient and this kind of operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check time and intended recipient
&lt;/h2&gt;

&lt;p&gt;Validate required issuer, audience and time-related claims according to the application’s token profile. A token valid for one service may be inappropriate for another. A token intended for one purpose should not silently become acceptable in a different flow.&lt;/p&gt;

&lt;p&gt;Write down the small clock tolerance, if any, and why it exists. A large tolerance added to silence failures changes the acceptance policy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn mistakes into test cases
&lt;/h2&gt;

&lt;p&gt;Create tests for a wrong audience, wrong issuer, expired token, unsupported algorithm and a token from a different flow. Use test credentials and synthetic claims, never live user tokens in a public fixture.&lt;/p&gt;

&lt;p&gt;The checklist is: parse, verify under fixed policy, validate claims, then apply authorization. The exact order inside a library can differ, but no earlier convenience step should be mistaken for permission to trust the payload.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc8725.html" rel="noopener noreferrer"&gt;RFC 8725: JWT Best Current Practices&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc7515.html" rel="noopener noreferrer"&gt;RFC 7515: JSON Web Signature&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Further reading on PKI Channel
&lt;/h2&gt;

&lt;p&gt;The following Japanese-language guides add diagrams and operational detail to the questions discussed above.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/what-is-jwt?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b106-1"&gt;JWTとは何か：JWS署名・JWKS・X.509を分けて検証する (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/what-is-digital-signature?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b106-2"&gt;デジタル署名とは何か (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;AI was used for research assistance, writing and illustration. Examples and checklists are explanatory, not reported lab results.&lt;/p&gt;

</description>
      <category>security</category>
      <category>beginners</category>
    </item>
    <item>
      <title>JWK and X.509 answer different questions about a public key</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Fri, 23 Oct 2026 12:47:37 +0000</pubDate>
      <link>https://dev.to/pki-channnel/jwk-and-x509-answer-different-questions-about-a-public-key-4oo5</link>
      <guid>https://dev.to/pki-channnel/jwk-and-x509-answer-different-questions-about-a-public-key-4oo5</guid>
      <description>&lt;p&gt;A JSON Web Key and an X.509 certificate can both expose public key information. That does not make them interchangeable trust objects. If you are integrating an API, first separate the key representation from the reason your application accepts that key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/plm5tm4kvxii6t2meysl.png" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1nq36t83agnibsqp062c.png" alt="JWK: JSON represents key material and optional metadata. X.509: An issuer signs a certificate containing a public key and claims. Trust policy: The application checks source, identity, purpose and allowed use." width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Format comparison; parsing alone does not establish trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the representation
&lt;/h2&gt;

&lt;p&gt;JWK is a JSON representation of a cryptographic key. Its members describe the key type and key material, with optional metadata. Some JWKs contain private parameters, so a file being JSON does not make it safe to publish.&lt;/p&gt;

&lt;p&gt;X.509 certificates package a public key with other information and an issuer signature. Their acceptance depends on certificate path validation and application-specific checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask where trust enters
&lt;/h2&gt;

&lt;p&gt;If an application downloads a JWK Set from a trusted configuration endpoint, the trust relationship includes how that endpoint was selected and protected. A key identifier such as kid helps select a key; it does not independently prove that the key is authorized.&lt;/p&gt;

&lt;p&gt;A certificate also needs an accepted trust path and appropriate identity and purpose checks. Merely parsing either format is not a trust decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand the optional bridge
&lt;/h2&gt;

&lt;p&gt;JWK can include an x5c member containing a certificate chain. That creates a relationship between formats, but it does not remove the need to check consistency or validate the chain according to the application’s rules.&lt;/p&gt;

&lt;p&gt;Avoid treating a supplied chain as a new trust anchor just because it arrived alongside the key. The sender should not get to choose the verifier’s trust policy implicitly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a key intake note
&lt;/h2&gt;

&lt;p&gt;For an API integration, document format, source URL or configuration source, permitted algorithms, expected issuer or identity, rotation method and failure behavior. Include whether private material is allowed in that location.&lt;/p&gt;

&lt;p&gt;The result should explain both how to read the key and why to accept it. That is a more useful beginner deliverable than memorizing which file extension belongs to which format.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc7517.html" rel="noopener noreferrer"&gt;RFC 7517: JSON Web Key&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc5280.html" rel="noopener noreferrer"&gt;RFC 5280: PKIX&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Further reading on PKI Channel
&lt;/h2&gt;

&lt;p&gt;The following Japanese-language guides add diagrams and operational detail to the questions discussed above.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/what-is-jwt?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b105-1"&gt;JWTとは何か：JWS署名・JWKS・X.509を分けて検証する (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/what-is-x509?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b105-2"&gt;X.509とは何か：署名構造と検証層を分けて読む (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;AI was used for research assistance, writing and illustration. Examples and checklists are explanatory, not reported lab results.&lt;/p&gt;

</description>
      <category>security</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Offboarding an mTLS client takes more than deleting its certificate file</title>
      <dc:creator>PKI security</dc:creator>
      <pubDate>Thu, 22 Oct 2026 14:16:19 +0000</pubDate>
      <link>https://dev.to/pki-channnel/offboarding-an-mtls-client-takes-more-than-deleting-its-certificate-file-4jdb</link>
      <guid>https://dev.to/pki-channnel/offboarding-an-mtls-client-takes-more-than-deleting-its-certificate-file-4jdb</guid>
      <description>&lt;p&gt;A device is retired and its certificate file is deleted from the device. Is access removed? That depends on copies of the key, the server’s certificate checks, application permissions and existing sessions. An offboarding checklist should follow those separate paths.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/xgoxf64z98emz6krp344.png" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxnwf4pqt0yovpddzzzyl.png" alt="Credential: Identify the certificate and possible key copies. Policy: Remove the intended access and inspect verifier behavior. Sessions: Check fresh connections and existing application sessions separately. Evidence: Record the effective time, tested paths and unknowns." width="800" height="668"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Offboarding design; no revocation or access test was performed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Identify the credential and the permissions
&lt;/h2&gt;

&lt;p&gt;Record the client certificate identity, issuer, serial number or fingerprint, associated account and allowed operations. Do not place private key material in the ticket. A certificate authenticates a credential; the application still needs a policy that maps it to access.&lt;/p&gt;

&lt;p&gt;This distinction gives you two different questions: can the client authenticate, and what can an authenticated client do? Removing a file answers neither question for other copies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check how the server rejects retired credentials
&lt;/h2&gt;

&lt;p&gt;Depending on the system, rejection may involve revocation checking, a local deny list, short certificate lifetimes or an application-level account policy. Determine what is actually implemented. Do not assume that publishing a CRL makes every client or server consume it immediately.&lt;/p&gt;

&lt;p&gt;Document the verifier, its update behavior and the maximum expected delay. Unknown behavior should remain unknown until tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  Include sessions and duplicate installations
&lt;/h2&gt;

&lt;p&gt;A credential may have been installed on more than one device. An existing application session may also outlive the TLS connection that created it. Identify where access persists and which component can terminate it.&lt;/p&gt;

&lt;p&gt;Use an authorized test account to verify the expected denial. A successful administrative click is useful evidence of the requested change, but it is not the same as observing access denied at the service boundary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Close with a bounded result
&lt;/h2&gt;

&lt;p&gt;A practical record includes credential identifier, policy changed, effective time, test endpoint, observed outcome and untested paths. Explain whether the test used a fresh connection, an existing session or both.&lt;/p&gt;

&lt;p&gt;This makes offboarding auditable without claiming instant global revocation. The checklist is a design aid; it does not establish that your particular mTLS service checks revocation or invalidates sessions automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primary sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc5280.html" rel="noopener noreferrer"&gt;RFC 5280: PKIX&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc8446.html" rel="noopener noreferrer"&gt;RFC 8446: TLS 1.3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final" rel="noopener noreferrer"&gt;NIST SP 800-57 Part 1 Rev. 5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Further reading on PKI Channel
&lt;/h2&gt;

&lt;p&gt;The following Japanese-language guides add diagrams and operational detail to the questions discussed above.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/mtls-workload-identity?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b104-1"&gt;mTLSとワークロードID：双方の認証と権限の判断を図解 (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pki-channel.com/ja/articles/private-ca-revocation?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=owned_media&amp;amp;utm_content=own-b104-2"&gt;プライベートCAの失効設計 (Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;AI was used for research assistance, writing and illustration. Examples and checklists are explanatory, not reported lab results.&lt;/p&gt;

</description>
      <category>security</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
