Get Service Certificate

 

The Get Service Certificate operation returns the public data for the specified X.509 certificate associated with a cloud service.

Request

The Get Service Certificate request may be specified as follows. Replace <subscription-id> with the subscription ID, <service-name> with the DNS prefix name of the cloud service, <thumbprint-algorithm> with the algorithm for the thumbprint, and <thumbprint> with the thumbprint.

Method

Request URI

GET

https://management.core.windows.net/<subscription-id>/services/hostedservices/<service-name>/certificates/<thumbprint-algorithm>-<thumbprint-in-hexadecimal>

URI Parameters

None.

Request Headers

The following table describes the request headers.

Request Header

Description

x-ms-version

Required. Specifies the version of the operation to use for this request. This header should be set to 2009-10-01 or higher.

Request Body

None.

Response

The response includes an HTTP status code, a set of response headers, and a response body.

Status Code

A successful operation returns status code 200 (OK).

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers.

Response Header

Description

x-ms-request-id

A value that uniquely identifies a request made against the management service.

Response Body

The format of the response body is as follows:

<?xml version="1.0" encoding="utf-8"?>
<Certificate xmlns=”https://schemas.microsoft.com/windowsazure”>
  <Data>Base64-encoded-X509-representation</Data>
</Certificate>

The following table describes the elements of the response body.

Element name

Description

Data

Specifies the public portion of the X.509 service certificate as a base-64 encoded form of the .cer file.

Remarks

The Get Service Certificate operation returns the base-64 encoded binary X.509 certificate data in .cer file format for the specified certificate associated with a cloud service. This certificate can be used to support secure access to a web role or worker role.