0

I am using Windows Server service bus 1.0. It was working fine up til now, but the Certificate of the farm has been expired.

I am no longer able to use service bus.

I would like to renew same certificate but I cannot find any useful help on the Google.

How can I find out at how to renew same farm's certificate?

halfer
  • 19,824
  • 17
  • 99
  • 186
user3661407
  • 525
  • 3
  • 9
  • 18

1 Answers1

1

Could anyone please help to find out, at how to renew same farm's certificate?

You could find that answer from this tutorial. To replace an active Service Bus for Windows Server farm certificate with a new certificate, do the following:

  1. Call the Stop-SBFarm cmdlet to stop all of the Service Bus for Windows Server services on all hosts. Execute this cmdlet on one of the farm nodes.

  2. Install a new certificate on all Service Bus for Windows Server machines.

  3. Call the Set-SBCertificate cmdlet with the following parameters. Run this cmdlet on one of the farm machines.

    • FarmCertificateThumbprint: Thumbprint of the new farm certificate.
  4. Call the Update-SBHost cmdlet on all farm nodes.

  5. Call the Start-SBFarm cmdlet on one of the farm nodes.

Tom Sun - MSFT
  • 24,161
  • 3
  • 30
  • 47
  • Thanks for you reply Tom. I am not able to run Service Bus powershell command in the powershell. When I try to stop farm. There comes an error that says powershell module is missing related to ServiceBus. I did not get this error before, It came after certificate was expired. Do you have any idea how to solve this. – user3661407 Aug 01 '18 at 06:34
  • Please refer to this [link](https://danieljudele.wordpress.com/2016/11/04/load-servicebus-for-windows-server-module-in-powershell/) to import powershell module. – Tom Sun - MSFT Aug 01 '18 at 06:46
  • I used that tutorial, but it is giving me an error on below line [Environment]::SetEnvironmentVariable(“PSModulePath”,Environment]::GetEnvironmentVariable(“PSModulePath”,”Machine”)) and the error is "Missing Expression , unexpected token". Do you know why is it so – user3661407 Aug 01 '18 at 07:35
  • I have solved powershell problem with the help of your link, but i am unable to run service bus command on powershell for example "stop-sbfarm" command. It says to me that certificate requested with the thumbprint not found in the store LocalMachine\My. I can see expired certificate in the store with same thumbprint. I do not know why it is saying so. Do you have any idea? – user3661407 Aug 01 '18 at 12:07
  • Sorry for no idea about that. I recommand that you could post another SO thread to add the detail information then you could get the more help from all communities. – Tom Sun - MSFT Aug 02 '18 at 00:41