diff --git a/CHANGELOG.md b/CHANGELOG.md index d866751ab..0dc08bd64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed spelling errors in Privileged Identity Management cmdlets: renamed `Get-PnPPriviledgedIdentityManagementRole`, `Get-PnPPriviledgedIdentityManagementEligibleAssignment`, and `Enable-PnPPriviledgedIdentityManagement` to use correct spelling "Privileged". Old cmdlet names remain functional as aliases for backward compatibility. [#5119](https://github.com/pnp/powershell/pull/5119) - Fixed Typos on `Move-PnPFolder, Get-PnPPowerPlatformSolution, Get-PnPPowerPlatformCustomConnector, Get-PnPPowerApp, Get-PnPPlannerPlan, Get-PnPContainer` cmdlets [#5124](https://github.com/pnp/powershell/pull/5124) - Fixed issue with `Set-PnPSite -HidePeoplePreviewingFiles $true` and `Set-PnPSite -HidePeopleWhoHaveListsOpen $true` added missing properties [#5003](https://github.com/pnp/powershell/issues/5003) +- Fixed issue with `New-PnpAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer` made it language agnostic [#5137](https://github.com/pnp/powershell/issues/5137) - Fix `Register-PnPEntraIdApp` Allow to use CER file instead of PFX [#5129](https://github.com/pnp/powershell/issues/5129) ### Removed diff --git a/src/Commands/Base/GetAzureCertificate.cs b/src/Commands/Base/GetAzureCertificate.cs index 9a25a1a8a..7aa8b84ec 100644 --- a/src/Commands/Base/GetAzureCertificate.cs +++ b/src/Commands/Base/GetAzureCertificate.cs @@ -88,7 +88,7 @@ internal static void WriteAzureCertificateOutput(BasePSCmdlet cmdlet, X509Certif certificate: CertificateHelper.CertificateToBase64(certificate), privateKey: CertificateHelper.PrivateKeyToBase64(certificate), sanNames: certificate.Extensions.Cast() - .Where(n => n.Oid.FriendlyName == "Subject Alternative Name") + .Where(n => n.Oid.Value == "2.5.29.17") .Select(n => new AsnEncodedData(n.Oid, n.RawData)) .Select(n => n.Format(false)) .FirstOrDefault().Split(',', StringSplitOptions.TrimEntries)