Skip to content

Commit 14686be

Browse files
committed
Update app-only-auth-powershell-v2.md
1 parent 5f729eb commit 14686be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Create a self-signed x.509 certificate using one of the following methods:
236236
$mycert = New-SelfSignedCertificate -DnsName "contoso.org" -CertStoreLocation "cert:\CurrentUser\My" -NotAfter (Get-Date).AddYears(1) -KeySpec KeyExchange
237237
238238
# Export certificate to .pfx file
239-
$mycert | Export-PfxCertificate -FilePath mycert.pfx -Password $(ConvertTo-SecureString -String "P@ssw0Rd1234" -AsPlainText -Force)
239+
$mycert | Export-PfxCertificate -FilePath mycert.pfx -Password (Get-Credential).password
240240
241241
# Export certificate to .cer file
242242
$mycert | Export-Certificate -FilePath mycert.cer

0 commit comments

Comments
 (0)