ExportPkcs8PrivateKey() is only available in .NET Core 3.0+ but Windows PowerShell 5.1 uses .NET Framework 4.x. Switch to PFX export which works on all Windows versions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>