Skip to content

Commit 0fca672

Browse files
authored
Update app-only-auth-powershell-v2.md
1 parent 3fcd3a7 commit 0fca672

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,16 @@ 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 [New-SelfSignedCertificate](https://docs.microsoft.com/powershell/module/pkiclient/new-selfsignedcertificate) (recommended)
140+
- 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. (Recommended.)
141141

142142
- Use the [Create-SelfSignedCertificate script](https://github.com/SharePoint/PnP-Partner-Pack/blob/master/scripts/Create-SelfSignedCertificate.ps1):
143143

144144
```powershell
145145
.\Create-SelfSignedCertificate.ps1 -CommonName "MyCompanyName" -StartDate 2020-04-01 -EndDate 2022-04-01
146146
```
147+
148+
> [!NOTE]
149+
> Note that this script generates SHA1 certificates.
147150
148151
## Step 4: Attach the certificate to the Azure AD application
149152

0 commit comments

Comments
 (0)