---
title: "AddTrustedHttpsCertificateAsync"
method: POST
path: "/v2/pki/https/certs"
tags: ["Certificates"]
---

# AddTrustedHttpsCertificateAsync

`POST /v2/pki/https/certs`

Add a certificate chain to the trusted https store. The certificate is provided as a concatenated set of certificates with the first the one to add, and the remainder the issuer chain.

## Request body

- string, byte

## Response `200`

The operation was successful.

## Other responses

- `400` — The passed in information 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/https/certs/post.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)
