I am attempting to apply pre-generated (from Active Directory CA) certificates to our On-Premise service bus environment via powershell. Below are the scripts I am executing:
$cert = Get-ChildItem Cert:\LocalMachine\Root | ?{$_.FriendlyName -eq '[CERTS FRIENDLY NAME]'}
Set-SBCertificate -EncryptionCertificateThumbprint $cert.Thumbprint -FarmCertificateThumbprint $cert.Thumbprint`
Below is the error that i am getting:
Set-SBCertificate : Cannot validate argument on parameter 'EncryptionCertificateThumbprint'. Valid certificate with thumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx not found At line:1 char:52 + Set-SBCertificate -EncryptionCertificateThumbprint $encryptCert.Thumbprint -Farm ... + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Set-SBCertificate], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ServiceBus.Commands.SetSBFarmCertificate
List of the things I have done to troubleshoot this:
Does anyone have any ideas on this issue? Or possibly know where the powershell module is attempting to look for the certificates at? Any assistance is much appreciated!
In order to get this command to find the certificates we had to add them to Certificates (Local Computer) under both "Trusted Root Certification Authorities" and "Personal."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With