Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Windows certificate inventory with PowerShell: RSA and ECC

Start with one service. Its Windows certificate store can contain an expired certificate, the replacement waiting for a maintenance window, and a certificate issued for an entirely different application. Which one does the client see? Read the machine store Open Windows PowerShell on a system you administer. This query reads public certificate properties from the local machine’s personal store.…

The Windows certificate inventory can be examined using PowerShell, revealing multiple certificates within the machine's personal store, each with different expiry dates and issuance dates. These certificates might belong to various applications or be placeholders awaiting maintenance.

The PowerShell query extracts crucial information such as the subject's name, identification number, expiration date, and public key algorithm. The public key algorithm can be RSA or ECC (Elliptic Curve Cryptography). RSA refers to a modulus length, while ECC requires checking the specific named curve parameters.

In a test conducted on Windows 11 Pro build 26200.9974 with PowerShell version 5.1, only one certificate was found in the machine store, using RSA with AES-256 encryption. However, querying the certificate store of the signed-in user returned no entries. It is crucial to specify the store path when conducting these checks, as the result may vary depending on the store used.

To ensure consistent certificate presentation across all clients, it is essential to verify the TLS termination point of the service. If the application is hosted behind a load balancer, the browser may see the load balancer's certificate, while a different certificate authenticates the application itself. By calculating the SHA-256 fingerprint of the leaf certificate (the certificate presented to the client) and comparing it with the fingerprint of the configured certificate for the listener, one can confirm that the client trusts the presented certificate and that the TLS connection is established securely.

The loopback test on the Windows host demonstrated that a temporary RSA certificate issued for 'localhost' was trusted by the client, verified the hostname, and successfully negotiated TLS 1.3. This highlights the importance of checking both the configured and presented fingerprints to accurately determine the listener's certificate.

Ultimately, maintaining a comprehensive cryptographic inventory that includes both the machine store and user store certificates, along with their respective algorithms and fingerprint comparisons, is vital for ensuring the security and reliability of the TLS connections.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in Tech

The best gamified health and fitness apps (2026): an honest comparison

Disclosure: we make New Game Plus, one of the apps on this list. We've tried to describe every app fairly, including where ours isn't the right pick.

  • Habitica is an RPG app for habit tracking with optional cosmetic upgrades
  • Zombies, Run! is a running app with audio adventure game mechanics
  • New Game Plus tracks various health metrics with a pixel-art hero

Recursion Not Clicking? Try Rewriting Each Call as an Expression

JSVisualizer is a free browser-based tool that runs JavaScript step by step and shows you what's happening in 12 different views. There's nothing to install.

  • Recursion allows a function to call itself before being fully defined
  • Base case stops recursion by returning a known answer
  • Each call is replaced with expression in Subst view, breaking problem into smaller versions

More from Saturday, 5 December 2026 →