Share via


Get-SBAutoGeneratedCA

Get-SBAutoGeneratedCA

Gets the certificate authority that was used for certificate auto generation. This certificate authority is required to be installed on the client machine if the client for Service Bus for Windows Server is not on the same machine as the server machine.

Syntax

Parameter Set: Default
Get-SBAutoGeneratedCA [-CACertificateFileName <String> ] [-RevocationListFileName <String> ] [-SBFarmDBConnectionString <String> ] [ <CommonParameters>]

Detailed Description

Run Get-SBAutoGeneratedCA to extract the Certificate Authority from the auto generated certificate created for the Service Bus for Windows Server. In order to use an auto-generated certificate with remote Service Bus clients, you can use this cmdlet when you have to add the Service Bus for Windows Server as a trusted Certificate Authority.

Parameters

-CACertificateFileName<String>

The Certificate Authority file name.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RevocationListFileName<String>

The revocation list file name.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SBFarmDBConnectionString<String>

The Service Bus for Windows Server management database connection string.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example

Extract the Certificate Authority from the auto-generated certificate.

PS C:\> Get-SBAutoGeneratedCA -SBFarmDBConnectionString 'Data Source= SqlServerName;Initial Catalog=SbManagementDB;Integrated Security=True' -CACertificateFileName "c:\CACert.pfx" -RevocationListFileName " c:\RevocationList.crl "

Service Bus 1.0 MSDN Community Forum