---
title: "ListCertificates"
method: GET
path: "/v2/pki/{store}/certs"
tags: ["Certificates"]
---

# ListCertificates

`GET /v2/pki/{store}/certs`

Get the certificates in the specified certificate store

## Path parameters

- `store` string, required

## Response `200`

The operation was successful.

- X509CertificateModel[]
  - `subject` string — Subject
  - `thumbprint` string — Thumbprint
  - `serialNumber` string — Serial number
  - `notBeforeUtc` string, date-time — Not before validity
  - `notAfterUtc` string, date-time — Not after validity
  - `selfSigned` boolean — Self signed certificate
  - `pfx` integer[] — Certificate as Pkcs12
  - `hasPrivateKey` boolean — Contains private key

## Other responses

- `400` — The passed in information such as store name is invalid
- `404` — Nothing could be found.
- `500` — An internal error ocurred.

## Changes

- **2024-06-29** `bfba75adb807` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
- **2023-10-05** `ae55786fe9e3` — 1 info
  - endpoint added
- **2023-05-02** `e285a38b6ca1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/opcpublisher/changes/v2/pki/:store/certs/get.md)

---

[API](https://skmtc.dev/azure/apis/opcpublisher.md) · [All operations](https://skmtc.dev/azure/apis/opcpublisher/llms.txt) · [OpenAPI document](https://skmtc.dev/azure/apis/opcpublisher/revisions/6a0e0e1a68ac?raw)
