Skip to content

Commit 8d4c04c

Browse files
authored
Merge pull request #5137 from reshmee011/CertIssue
Closes #5130 to be language agnostic
2 parents 0e7bc18 + 148ef9e commit 8d4c04c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4949
- 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)
5050
- Fixed Typos on `Move-PnPFolder, Get-PnPPowerPlatformSolution, Get-PnPPowerPlatformCustomConnector, Get-PnPPowerApp, Get-PnPPlannerPlan, Get-PnPContainer` cmdlets [#5124](https://github.com/pnp/powershell/pull/5124)
5151
- Fixed issue with `Set-PnPSite -HidePeoplePreviewingFiles $true` and `Set-PnPSite -HidePeopleWhoHaveListsOpen $true` added missing properties [#5003](https://github.com/pnp/powershell/issues/5003)
52+
- Fixed issue with `New-PnpAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer` made it language agnostic [#5137](https://github.com/pnp/powershell/issues/5137)
5253
- Fix `Register-PnPEntraIdApp` Allow to use CER file instead of PFX [#5129](https://github.com/pnp/powershell/issues/5129)
5354

5455
### Removed

src/Commands/Base/GetAzureCertificate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ internal static void WriteAzureCertificateOutput(BasePSCmdlet cmdlet, X509Certif
8888
certificate: CertificateHelper.CertificateToBase64(certificate),
8989
privateKey: CertificateHelper.PrivateKeyToBase64(certificate),
9090
sanNames: certificate.Extensions.Cast<X509Extension>()
91-
.Where(n => n.Oid.FriendlyName == "Subject Alternative Name")
91+
.Where(n => n.Oid.Value == "2.5.29.17")
9292
.Select(n => new AsnEncodedData(n.Oid, n.RawData))
9393
.Select(n => n.Format(false))
9494
.FirstOrDefault().Split(',', StringSplitOptions.TrimEntries)

0 commit comments

Comments
 (0)