---
title: "POST /public/v1/certificates/file"
method: POST
path: "/public/v1/certificates/file"
tags: ["certificates"]
---

# POST /public/v1/certificates/file

`POST /public/v1/certificates/file`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/public/v1/certificates/file`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/v1/certificates/file/post.ts> (a function with typed inputs; its response is checked against the schema)

Import certificates in the organization from a file (.crt, .pem. or .jks)

## Request body `multipart/form-data`

- CreateCertificateFromFileRequest
  - `file` string, binary, required
  - `jksPassword` string

## Response `201`

The certificate(s) added to the organization

- DecodedCertificate[]
  - `id` string, required
  - `version` integer, required
  - `serialNumber` integer, required
  - `issuerDN` string, required
  - `subjectDN` string, required
  - `notBefore` string, date-time, required
  - `notAfter` string, date-time, required

## Other responses

- `400`: The input file is invalid for one of the following reasons: * The content is not a valid x509 certificate (PEM, CRT or JKS formats are supported) * If the file is in the JKS format the password field is mandatory and a valid password must be provided * The file exceeds the maximum size allowed (50MB)
- `401`: The user is not authenticated
- `500`: An unexpected error occurred in the server

---

[API](https://skmtc.dev/conduktor/apis/conduktor-console-api.md) - [All operations](https://skmtc.dev/conduktor/apis/conduktor-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/conduktor/apis/conduktor-console-api/revisions/24750c294805?raw)
