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.
2 parents 6af6817 + 4db767a commit 0bf557dCopy full SHA for 0bf557d
exchange/docs-conceptual/app-only-auth-powershell-v2.md
@@ -149,7 +149,7 @@ Create a self-signed x.509 certificate using one of the following methods:
149
150
```powershell
151
# Create certificate
152
-$mycert = New-SelfSignedCertificate -DnsName "example.com" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(1)
+$mycert = New-SelfSignedCertificate -DnsName "example.com" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(1) -KeySpec KeyExchange
153
154
# Export certificate to .pfx file
155
$mycert | Export-PfxCertificate -FilePath mycert.pfx -Password $(ConvertTo-SecureString -String "1234" -Force -AsPlainText)
0 commit comments