# Assign SMIME certificates to domains via CLI

**URL:** <https://community.ciphermail.com/t/assign-smime-certificates-to-domains-via-cli/990>\
**Category:** Gateway\
**Tags:** smime\
**Created:** [May 20, 2025, 9:01am UTC](https://community.ciphermail.com/t/assign-smime-certificates-to-domains-via-cli/990 "2025-05-20T09:01:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igelmund](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@Igelmund](https://community.ciphermail.com/u/Igelmund)\
**Post date:** [May 20, 2025, 9:01am UTC](https://community.ciphermail.com/t/assign-smime-certificates-to-domains-via-cli/990/1 "2025-05-20T09:01:01Z")

</div>

Hello everyone,

I’d like to assign SMIME Certificates to Domains via CLI to automate the process.

I’ve read here that I’m supposed to use the commands  
java -cp ‘/usr/share/djigzo/lib/_’ mitm.application.djigzo.tools.CLITool  
java -cp '/usr/share/djigzo/lib/_’ mitm.application.djigzo.tools.CertStore

to add domains and and certificates. Afterwards, I guess I have use to another command to assign certificate to the domain.

Could you help me figure out which parameters I have to set to achieve this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [May 21, 2025, 6:56am UTC](https://community.ciphermail.com/t/assign-smime-certificates-to-domains-via-cli/990/2 "2025-05-21T06:56:37Z")

</div>

Unfortunately the CLI is limited and domain certificates cannot be configured with the CLI tool.

With the upcoming release, the back-end is now completely configurable with a REST api. The REST api has an extensive authorization module where every action and setting requires a specific permission. The UI has been rebuilt completely. It now uses React. There is now also a fully functional cli (which connects to the back-end using the REST api) which allows you to fully script the gateway. There are lots of other changes and improvements which will be explained in a blog when we release it.

The release is almost ready. It has been in production for some time now. We will need to work on the documentation however.

All code of the community edition can be found in our community gitlab repo:

> **[CipherMail B.V. / ciphermail-community-gateway · GitLab](https://gitlab.com/ciphermail/ciphermail-community-gateway)**
>
> This repository contains the 'open core' code that powers the CipherMail Email Encryption Gateway. It contains everything you need to build the libraries and OS packages of the...

---

<div class="post-metadata">

**Author:** ![Igelmund](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@Igelmund](https://community.ciphermail.com/u/Igelmund)\
**Post date:** [May 21, 2025, 2:05pm UTC](https://community.ciphermail.com/t/assign-smime-certificates-to-domains-via-cli/990/3 "2025-05-21T14:05:26Z")

</div>

Alright, thanks for the explanation
