Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sovereign, high-performance data protection

Getting started

Eviden KMS can be installed on various platforms, including Docker, Ubuntu, Rocky Linux, macOS, and Windows. It is prepackaged with an integrated web ui (except for macOS) that is available on the /ui path of the server.

The KMS is also available on the marketplaces of major cloud providers, prepackaged to run confidentially in an Eviden VM. Please check this page for more information.

When installed using the options below, the KMS server will be automatically configured to run using an SQLite database. If you wish to change the database configuration, please refer to the database guide.

For high availability and scalability, refer to the High Availability Guide.

Installing Eviden KMS: verified release packages or container images

Verifying release signatures

All Eviden KMS release packages (DEB, RPM, APK, DMG) are GPG-signed. Each package is accompanied by a .asc signature file that can be used to verify its authenticity and integrity. For Alpine .apk packages this is the only authenticity check: they are not signed with an abuild key, so apk must be run with --allow-untrusted and cannot verify them itself.

Verifying the GPG signature of a downloaded release package

Import the Eviden public key**

gpg --import cosmian-kms-public.asc

The key is also bundled inside DMG installers and available in the GitHub repository.

Verify a downloaded package**

gpg --verify <package>.asc <package>

For example:

# Debian package
gpg --verify cosmian-kms-server-non-fips-static-openssl_5.30.0_amd64.deb.asc \
             cosmian-kms-server-non-fips-static-openssl_5.30.0_amd64.deb

# RPM package
gpg --verify cosmian-kms-server-non-fips-static-openssl_5.30.0_x86_64.rpm.asc \
             cosmian-kms-server-non-fips-static-openssl_5.30.0_x86_64.rpm

# APK package (Alpine Linux)
gpg --verify cosmian-kms-server-non-fips_5.30.0-r0_x86_64.apk.asc \
             cosmian-kms-server-non-fips_5.30.0-r0_x86_64.apk

# DMG package
gpg --verify cosmian-kms-server-non-fips-static-openssl-5.30.0_arm64.dmg.asc \
             cosmian-kms-server-non-fips-static-openssl-5.30.0_arm64.dmg

A successful verification prints:

gpg: Good signature from "Eviden KMS Release <tech@cosmian.com>"

Warning

If the signature does not match, do not use the package.

Installation

KMS CLI

The KMS CLI lets you interact with the KMS from the command line. Install and configure it from KMS CLI.

Run the container as follows:

docker run -p 9998:9998 -e KMS_INSECURE_ALLOW_UNAUTHENTICATED=true --name kms ghcr.io/cosmian/kms:latest

This unauthenticated opt-in is for development only; configure authentication for production.

  • The KMS UI is available at http://localhost:9998/ui.
  • The KMS REST API is available on http://localhost:9998,
  • The server stores its data inside the container in the /root/cosmian-kms/sqlite-data directory.

A FIPS version is also available:

docker run -p 9998:9998 -e KMS_INSECURE_ALLOW_UNAUTHENTICATED=true --name kms ghcr.io/cosmian/kms-fips:latest

To persist data between restarts, mount the /root/cosmian-kms/sqlite-data path to a filesystem directory or a Docker volume:

docker run --rm -p 9998:9998 \
-e KMS_INSECURE_ALLOW_UNAUTHENTICATED=true \
-v cosmian-kms:/root/cosmian-kms/sqlite-data \
--name kms ghcr.io/cosmian/kms:latest

A custom configuration file can be provided by mounting it in the container:

docker run --rm -p 9998:9998 \
-v cosmian-kms:/root/cosmian-kms/sqlite-data \
-v /path/to/your/kms.toml:/etc/cosmian/kms.toml \
--name kms ghcr.io/cosmian/kms:latest

Static vs Dynamic builds

  • Static builds: ship with OpenSSL statically linked into the binary. Simplest to deploy; no external crypto libraries required; consistent behavior across environments.
  • Dynamic builds: link OpenSSL dynamically. This allows replacing the OpenSSL shared library at runtime to use custom or system-provided crypto. On Linux, replace the relevant .so files; on macOS, replace the .dylib files, ensuring ABI compatibility.

Available dynamic packages for Debian-based distributions:

# Non-FIPS dynamic (OpenSSL linked dynamically)
wget https://package.cosmian.com/kms/5.30.0/deb/amd64/non-fips/dynamic/cosmian-kms-server-non-fips-dynamic-openssl_5.30.0_amd64.deb
# FIPS dynamic
wget https://package.cosmian.com/kms/5.30.0/deb/amd64/fips/dynamic/cosmian-kms-server-fips-dynamic-openssl_5.30.0_amd64.deb

Available dynamic packages for Rocky Linux:

# Non-FIPS dynamic
wget https://package.cosmian.com/kms/5.30.0/rpm/amd64/non-fips/dynamic/cosmian-kms-server-non-fips-dynamic-openssl_5.30.0_x86_64.rpm
# FIPS dynamic
wget https://package.cosmian.com/kms/5.30.0/rpm/amd64/fips/dynamic/cosmian-kms-server-fips-dynamic-openssl_5.30.0_x86_64.rpm

To use custom OpenSSL with dynamic builds, install or place the desired OpenSSL shared libraries here: /usr/local/cosmian/lib/ossl-modules.

On Windows, download the NSIS installer:

https://package.cosmian.com/kms/5.30.0/windows/x86_64/non-fips/static-openssl/cosmian-kms-server-non-fips-static-openssl_5.30.0_x86_64.exe

Run the installer to install Cosmian KMS Server (it needs Administrator rights). The installer will:

  • Install the KMS server with integrated web UI in C:\Program Files\Cosmian KMS Server (the directory is fixed: /D= is ignored, because the service runs as LocalSystem and its directory must not be writable by standard users)
  • Set up the configuration file at C:\Program Files\Cosmian KMS Server\kms.toml
  • Store the SQLite database in C:\Program Files\Cosmian KMS Server\data and the rolling logs in C:\Program Files\Cosmian KMS Server\logs; data, logs and kms.toml are readable only by SYSTEM and Administrators
  • Register and start the CosmianKMS Windows service (automatic start, restarted after a failure)

After installation, you can run the server:

cosmian_kms --version
  • The KMS UI is available at http://localhost:9998/ui
  • The server uses the configuration file located at C:\Program Files\Cosmian KMS Server\kms.toml
  • See the server configuration for more information

A FIPS 140-3 server installer is also available:

https://package.cosmian.com/kms/5.30.0/windows/x86_64/fips/static-openssl/cosmian-kms-server-fips-static-openssl_5.30.0_x86_64.exe

It installs the same service and additionally ships the OpenSSL 3.5.9 FIPS provider under <install dir>\openssl. The CosmianKMS service gets OPENSSL_CONF, OPENSSL_MODULES and OPENSSL_CONF_INCLUDE in its own environment (no machine-wide variables are set). To run the server from a console, use <install dir>\openssl\cosmian_kms_fips.cmd -c <install dir>\kms.toml instead of cosmian_kms: the FIPS server refuses to start without the provider.

Windows service

sc query CosmianKMS          # state
Restart-Service CosmianKMS   # after editing kms.toml (elevated PowerShell)
sc stop CosmianKMS
sc start CosmianKMS

A fresh installation listens on 127.0.0.1:9998 only: the server refuses to start unauthenticated on another address. To accept remote clients, edit hostname in the [http] section of kms.toml, configure an authentication method (or, for development only, set insecure_allow_unauthenticated = true), restart the service, and open the port:

netsh advfirewall firewall add rule name="Cosmian KMS" dir=in action=allow protocol=TCP localport=9998

The server speaks plain HTTP unless TLS is configured in kms.toml.

Silent install, upgrade and uninstall

.\cosmian-kms-server-non-fips-static-openssl_5.30.0_x86_64.exe /S      # silent install
.\cosmian-kms-server-non-fips-static-openssl_5.30.0_x86_64.exe /S /NS  # also skip the shortcuts
& "C:\Program Files\Cosmian KMS Server\uninstall.exe" /S              # uninstall
  • Upgrade: run the new installer over the existing one. Your kms.toml is kept, the new default configuration is written to kms.toml.new, and a copy of kms.toml, data and logs is made in <previous install dir>.upgrade-backup while the old version is replaced (removed once restored). Installations made by earlier versions in %LOCALAPPDATA%\Cosmian KMS Server are moved to the new directory, and a database that the old service created in C:\Windows\System32\cosmian-kms\sqlite-data is copied to C:\Program Files\Cosmian KMS Server\data\sqlite-data (the original is left untouched).
  • Uninstall: removes the service, the binaries and the logs, but keeps data (the key database). Delete C:\Program Files\Cosmian KMS Server\data manually to remove all keys.