Skip to content

Commit

Permalink
Merge pull request #340 from amaiman/patch-2
Browse files Browse the repository at this point in the history
Update graph-connector-agent.md
  • Loading branch information
wobba authored Oct 16, 2024
2 parents 2ead625 + 89f48ea commit 4e7b73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MicrosoftSearch/graph-connector-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ $fileName = "agentcert" # What do you want to call the cert files? without the f
$yearsValid = 10 # Number of years until you need to renew the certificate
$certStoreLocation = "cert:\LocalMachine\My"
$expirationDate = (Get-Date).AddYears($yearsValid)
$certificate = New-SelfSignedCertificate -DnsName $dnsName -CertStoreLocation $certStoreLocation -NotAfter $expirationDate -KeyExportPolicy Exportable -KeySpec Signature
$certificate = New-SelfSignedCertificate -DnsName $dnsName -CertStoreLocation $certStoreLocation -NotAfter $expirationDate -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA256
$certificatePath = $certStoreLocation + '\' + $certificate.Thumbprint
$filePath = $folderPath + '\' + $fileName
$securePassword = ConvertTo-SecureString -String $password -Force -AsPlainText
Expand Down

0 comments on commit 4e7b73a

Please sign in to comment.