Skip to content

Add IMDS certificate-chain validation RunCommand scripts (Windows + Linux)#132

Open
ScottAzure wants to merge 1 commit into
Azure:masterfrom
ScottAzure:feature/imds-cert-chain-clean
Open

Add IMDS certificate-chain validation RunCommand scripts (Windows + Linux)#132
ScottAzure wants to merge 1 commit into
Azure:masterfrom
ScottAzure:feature/imds-cert-chain-clean

Conversation

@ScottAzure

Copy link
Copy Markdown
Collaborator

Summary

Adds IMDS certificate-chain validation RunCommand scripts for both Windows and Linux. When a VM's IMDS attestation certificate chain breaks, the VM can fail Windows activation, lose managed-identity access, and block ESU — usually with cryptic errors and no self-serve fix. These scripts diagnose the exact broken link and can repair it.

What's included

  • Linux (RunCommand/Linux/Linux_IMDSValidation/) — net-new validator. Walks the IMDS cert chain element by element, inventories the trust store, detects OCSP rotation mismatches, and offers --autofix to download and install the missing intermediate, then re-walk the chain.
  • Windows (RunCommand/Windows/Windows_IMDSValidation/) — enhances the existing validator with per-element chain walking, dynamic store inventory, OCSP-rotation detection, P0-P2 diagnostic phases, and an -AutoFix switch.

Validation

End-to-end validated on real VMs:

Platform Result
Ubuntu 22.04 ✅ diagnostic + AutoFix
RHEL 9.7 ✅ diagnostic
SUSE 15 SP6 ✅ diagnostic
Windows Server 2022 ✅ diagnostic (AutoFix final validation in progress)

Scope

Purely additive — Linux folder is new, Windows folder enhances the existing script. No other scripts are touched.

…inux)

Adds a Linux IMDS cert-chain validator and enhances the Windows validator with per-element chain walking, dynamic store inventory, OCSP-rotation detection, P0-P2 diagnostic phases, and an -AutoFix/--autofix switch that installs the missing intermediate and re-walks the chain.

Validated end-to-end on Ubuntu 22.04, RHEL 9.7, SUSE 15 SP6, and Windows Server 2022. Linux: net-new script. Windows: enhances the existing validator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant