---
title: "Fetch SSL certificate by common name or serial number"
method: GET
path: "/api/pki/restapi/getCertificate"
tags: ["SSL Certificates"]
---

# Fetch SSL certificate by common name or serial number

`GET /api/pki/restapi/getCertificate`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/api/pki/restapi/getCertificate`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/api/pki/restapi/getCertificate/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `common_name` string
- `serial_number` string
- `fileType` 'CER' | 'CRT' | 'DER' | 'P7B' | 'PKCS' | 'JKS' | 'PEM' | 'KEY'

## Headers

- `orgName` string

## Response `200`

SSL certificate

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
