Skip to content

Commit 0d4899d

Browse files
authored
Merge pull request MicrosoftDocs#6415 from dariomws/patch-210
Added New-SelfSignedCertificate as recommended method to request cert to app-only-auth-powershell-v2.md
2 parents 3db9fd3 + fda67b4 commit 0d4899d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exchange/docs-conceptual/app-only-auth-powershell-v2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ You need to assign the API permission `Exchange.ManageAsApp` so the application
137137

138138
Create a self-signed x.509 certificate using one of the following methods:
139139

140-
- Use the [Create-SelfSignedCertificate script](https://github.com/SharePoint/PnP-Partner-Pack/blob/master/scripts/Create-SelfSignedCertificate.ps1):
140+
- (Recommended) Use the [New-SelfSignedCertificate](https://docs.microsoft.com/powershell/module/pkiclient/new-selfsignedcertificate) and [Export-PfxCertificate](https://docs.microsoft.com/powershell/module/pkiclient/export-pfxcertificate) cmdlets to request a self-signed certificate and export it to PFX.
141+
142+
- Use the [Create-SelfSignedCertificate script](https://github.com/SharePoint/PnP-Partner-Pack/blob/master/scripts/Create-SelfSignedCertificate.ps1). Note that this script generates SHA1 certificates.
141143

142144
```powershell
143145
.\Create-SelfSignedCertificate.ps1 -CommonName "MyCompanyName" -StartDate 2020-04-01 -EndDate 2022-04-01
144146
```
145147

146-
- Use the **makecert.exe** tool from the Windows SDK.
147-
148148
## Step 4: Attach the certificate to the Azure AD application
149149

150150
After you register the certificate with your application, you can use the public key (.pfx file) or the thumbprint for authentication.

0 commit comments

Comments
 (0)