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

# AddCertificate

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

Add a certificate to the specified store. The certificate is provided as a pfx/pkcs12 optionally password protected blob.

## Path parameters

- `store` string, required

## Query parameters

- `password` string

## Request body

- string, byte

## Response `200`

The operation was successful.

## Other responses

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

## Changes

- **2024-06-29** `bfba75adb807` — 2 info
  - added the non-success response with the status `400`
  - 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/patch.md)

---

[API](https://skmtc.dev/azure/apis/opcpublisher.md) · [All operations](https://skmtc.dev/azure/apis/opcpublisher/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/opcpublisher/revisions/8eac19a554d6/schema)
