We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f729eb commit 14686beCopy full SHA for 14686be
exchange/docs-conceptual/app-only-auth-powershell-v2.md
@@ -236,7 +236,7 @@ Create a self-signed x.509 certificate using one of the following methods:
236
$mycert = New-SelfSignedCertificate -DnsName "contoso.org" -CertStoreLocation "cert:\CurrentUser\My" -NotAfter (Get-Date).AddYears(1) -KeySpec KeyExchange
237
238
# Export certificate to .pfx file
239
- $mycert | Export-PfxCertificate -FilePath mycert.pfx -Password $(ConvertTo-SecureString -String "P@ssw0Rd1234" -AsPlainText -Force)
+ $mycert | Export-PfxCertificate -FilePath mycert.pfx -Password (Get-Credential).password
240
241
# Export certificate to .cer file
242
$mycert | Export-Certificate -FilePath mycert.cer
0 commit comments