Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Get-CsCertificate

 

Topic Last Modified: 2015-03-09

Returns information about certificates on the local computers that have been configured for use with Skype for Business Server 2015. This cmdlet was introduced in Lync Server 2010.

Get-CsCertificate [-Identity <XdsIdentity>] [-Report <String>] [-Type <CertType[]>]

The command shown in Example 1 returns information about the certificates currently assigned to Skype for Business Server 2015 components. This is done by calling the Get-CsCertificate cmdlet without any additional parameters.

Get-CsCertificate

Example 2 retrieves all the Skype for Business Server 2015 certificates used for internal Web services. To do this, the Type parameter is included, along with the parameter value WebServicesInternal.

Get-CsCertificate -Type WebServicesInternal

Example 3 returns all the Skype for Business Server 2015 certificates that expire before September 1, 2012. To carry out this task, the command first uses the Get-CsCertificate cmdlet to return a collection of all the Skype for Business Server 2015 certificates currently in use. This collection is then piped to the Where-Object cmdlet, which selects only those certificates that expire before September 1, 2012. The date specified in this example (9/1/2012) uses the U.S. English format for date-time values. Dates should be specified using a format compatible with your Regional and Language Options.

Get-CsCertificate | Where-Object {$_.NotAfter -lt "9/1/2012"}

Example 4 returns information about all the Skype for Business Server 2015 certificates issued by the certification authority (CA) MyCa. To do this, the command first calls the Get-CsCertificate cmdlet without any parameters in order to return a collection of all the certificates currently in use. This collection is then piped to the Where-Object cmdlet, which picks out all the certificates where the Issuer property is equal to (-eq) "Cn=MyCa".

Get-CsCertificate | Where-Object {$_.Issuer -eq "Cn=MyCa"}

The command shown in Example 5 returns all the Skype for Business Server 2015 certificates where the Subject property has been set to CN=atl-cs-001.litwareinc.com. This is done by using the Get-CsCertificate cmdlet to return a collection of all the Skype for Business Server 2015 certificates, then piping that collection to the Where-Object cmdlet. In turn, the Where-Object cmdlet selects only those certificates where the Subject property is equal to "CN=atl-cs-001.litwareinc.com".

Get-CsCertificate | Where-Object {$_.Subject -eq "CN=atl-cs-001.litwareinc.com"}

Skype for Business Server 2015 uses certificates as a way for servers and server roles to verify their identities; for example, an Edge Server uses certificates to verify that the computer it is communicating with really is a Front End Server, and vice versa. In order to fully implement Skype for Business Server 2015 you will need to have the appropriate certificates assigned to the appropriate server roles.

The Get-CsCertificate cmdlet provides a way for you to retrieve detailed information about the certificates that have been configured for use with Skype for Business Server 2015. Note that the cmdlet only returns information about Skype for Business Server 2015 certificates. If a certificate has not been configured for use with Skype for Business Server 2015 (by using the Set-CsCertificate cmdlet) then that certificate will not be returned when you run the Get-CsCertificate cmdlet.

 

Parameter Required Type Description

Identity

Optional

Microsoft.Rtc.Management.Xds.XdsIdentity

Enables you to retrieve certificates configured at the global scope (global certificates are copied and distributed to the appropriate computers). Use this syntax to return information about the global certificates:

Get-CsCertificate -Identity "global"

Report

Optional

System.String

Enables you to record detailed information about the procedures carried out by the Get-CsCertificate cmdlet. The parameter value should be the full path to the HTML file that will be generated; for example: -Report C:\Logs\Certificates.html. If the specified file already exists, it will automatically be overwritten with the new information.

Type

Optional

Microsoft.Rtc.Management.Deployment.CertType[]

Type of certificate being requested. Certificate types include, but are not limited to, the following:

AccessEdgeExternal

AudioVideoAuthentication

DataEdgeExternal

Default

External

Internal

iPhoneAPNService

iPadAPNService

MPNService

PICWebService (Skype for Business Online only)

ProvisionService (Skype for Business Online only)

WebServicesExternal

WebServicesInternal

WsFedTokenTransfer

For example, this syntax returns information about the Default certificate: -Type Default.

You can specify multiple types in a single command by separating the certificate types with commas:

-Type Internal,External,Default

None. The Get-CsCertificate cmdlet does not accept pipelined input.

The Get-CsCertificate cmdlet returns instances of the Microsoft.Rtc.Management.Deployment.CertificateReference object.

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft