Azure – How to install SSL Certificate into Service Bus 1.1 on Windows Server

azuressl-certificatewindows-server-2012

For test cases and evaluation we installed 2 nodes with "Azure Service Bus 1.1" on Windows Server 2012 R2 machines.

The installation process installs the https endpoints with a self-signed certificate which is not trusted through our domain.

In whitepapers I have red that there are two relevant certificates for Service Bus:
"Encryption Certificate" and "Farm Certificate". How can we change the certificate?

Best Answer

Use Set-SBCertificate command.

Example:

Set-SBCertificate `
  -EncryptionCertificateThumbprint ‎<thumbprint> `
  -FarmCertificateThumbprint ‎<thumbprint> `
  -SBFarmDBConnectionString "Server=sqlserver;Trusted_Connection=true;Database=SbManagement;Connect Timeout=300"

Also take a look at these blogposts: