--- title: "Local certificates (REST API)" slug: "rest-api-local-certificates" updated: 2026-11-02T13:47:06Z published: 2026-11-02T13:47:06Z canonical: "docs.lobstersoftware.com/rest-api-local-certificates" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Local certificates (REST API) Starting with Release 26.1, administrators can add and revoke local certificates through the REST API over HTTP. You can also download local certificates. Downloading uses a separate endpoint. A Local certificate contains both the public key and the private key. This sets it apart from partner [Certificates](/v1/docs/en/manage-partners-certificates), which holds only the public key. This endpoint is disabled by default. You must enable it explicitly before use. The behavior mirrors the [Partner certificates (REST API)](/v1/docs/en/rest-api-partner-certificates) endpoint. The JSON body differs in these ways: - `relation`: Never used for local certificates. - `id`: This is omitted when you add a certificate. The server generates it and returns it. Required when you revoke a certificate. - `password` and `note`: added as new fields. > [!CAUTION] > **CAUTION****:** > > This endpoint transmits the private key of a local certificate to the Integration Server. The transmitted key is not end-to-end encrypted. If you enable this endpoint, you accept the resulting security risk. Lobster disables it by default for this reason. Enable it only if your security policy explicitly permits the transmission of private keys. ## Enabling the endpoint Set this property in the **Admin console**. 1. Open **Tools** > **JVM**. You see the property list. 2. Add the following JVM system property and set it to `true`: ```undefined hub.datawizard.allowLocalCert=true ``` ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-7YW5JJ45.png)The endpoint stays unavailable while the property is unset or `false`. ## Adding a local certificate URL (HTTP POST with JSON): `http(s)://<IP or URL of Integration Server>/dw/auth/v1/localcertificate` The request body uses these parameters: | Parameter | Required | Description | | --- | --- | --- | | `operation` | Yes | The action to run. Use `add` to import a certificate. | | `commonName` | Yes | The Common Name (CN) of the certificate. | | `certificate` | Yes | The certificate data, is Base64-encoded. See "Encoding the certificate" below. | | `password` | No | The password of the certificate. Required for password-protected files, for example: PKCS12. | | `note` | No | A free-text note, stored with the certificate. | Example request: ```json {    "operation": "add",    "commonName": "myserver.example.com",    "certificate": "MIIWrwIBAzCCFmUGCSqGSIb3DQEH......",    "password": "certificate-password",    "note": "local-cert-chain" } ``` Example response: ```json {    "response": {        "status": "ok",        "id": "1768285182284753"    } } ``` The `id` in the response is the ID of the imported local certificate. You need this ID to revoke the certificate later. ## Encoding the certificate The `certificate` parameter accepts these formats: DER, PEM, PKCS12. You must Base64-encode the file content first. In some cases, you must import the complete Certificate chain together with the private key. On Linux, use the terminal: ```bash base64 full-cert-pkcs12.p12 > full-cert-base64.txt ``` On Windows, use the command prompt: ```dos certutil -encode full-cert-pkcs12.p12 full-cert-base64.txt ``` Copy the encoded content from the output file. Paste it as the value of `certificate`. ## Revoking a local certificate Revoking a local certificate works like revoking a Partner Certificate. The `relation` field is omitted. URL (HTTP POST with JSON): `http(s)://<IP or URL of Integration Server>/dw/auth/v1/localcertificate` Example request: ```json {    "operation": "revoke",    "id": 1768285182284753 } ``` ## Downloading a local certificate You download local certificates with the same endpoint used for partner certificates. This is the `exportcertificate` endpoint. URL (HTTP GET): `http(s)://<IP or URL of Integration Server>/dw/auth/v1/exportcertificate?id=<id>&format=<format>` Set `<id>` to the certificate ID. Set `<format>` to the export format. Allowed values: `DER`, `PEM`, `OPENSSH`, `PKCS12`, `PKCS7`, `PUTTY`, or `INFO`. Unknown formats fall back to `DER`. The value `INFO` returns metadata only, not the certificate. See [Partner certificates (REST API)](/v1/docs/en/rest-api-partner-certificates) for more detail. ## Logs Find the logs for these requests in the Server Logging. Open **Administration** > **Server logging**. The relevant file is `internal/message.log` (also at `./logs/services/message.log`). An architecture for web APIs based on HTTP. REST APIs use standard methods such as GET, POST, PUT, and DELETE to access resources. The Lobster Data Platform provides its own REST API and can act as a REST endpoint via an HTTP input agent. A local certificate is held by the Lobster Data Platform itself. It contains the public key and the private key. This allows the Integration Server to identify itself to partners and sign or decrypt data. It can be managed through the REST API. JSON (**J**ava**S**cript **O**bject **N**otation) is a lightweight text format for data exchange. The Lobster Data Platform handles JSON in integration profiles, web resources, and API interfaces. Value resolvers convert JSON data to internal objects and vice versa. The Integration Server is the central runtime component of the Lobster Data Platform. It executes integration processes and processes data. The Integration Server stores local certificates and uses their private keys for signing and decryption. It provides all communication services (e.g., FTP, SMTP, HTTP) and connects the application to the database. It is managed via the Admin console. The Integration Server's user interface for configuration, operation, and diagnostics. The Admin console manages services, users, passwords, databases, and system settings. It is independent of the Control Center and is intended for system administrators. The Common Name (CN) is a field in the certificate. It names the owner, usually as a hostname or server name. When adding a local certificate via the REST API, specify the CN in the parameter `commonName` . PKCS12 is a binary container format for cryptographic objects. It stores a private key along with the associated certificate in a file. The file is password protected. Common extensions are .p12 and .pfx. PKCS12 is used for the secure transport of certificates. **P**rivacy **E**nhanced **M**ail: An older text-based encoding format for certificates. The data is Base64 encoded. Headers such as "-----BEGIN CERTIFICATE-----" delimit each block. Multiple certificates can be combined into one file. Common extensions are .pem and .crt. A certificate chain connects a certificate to a trusted root. It consists of an end-entity, intermediate, and root certificate. When importing via the REST API, you encode the entire chain as one file. The certificate of a communication partner. It contains only the public key. The Lobster Data Platform uses it to verify the partner's signatures and encrypt data for them. You can manage it through the REST API. ## Related - [Partner certificates (REST API)](/rest-api-partner-certificates.md) - [Certificates](/manage-partners-certificates.md)