Keyturn docsStart here
Set up a server
keyturnd changes nothing in Domino on its own. Every switch is off until you turn it on in one file, keyturn\keyturnd.conf. These steps use Windows paths; Linux is the same under /local/notesdata.
What you need
- HCL Domino 12.0.2 or later on Windows x64 or Linux x64.
keyturndandkeyturnfrom the same release.- A TLS certificate and key (PEM) whose names include the host name people connect to. It must be a server certificate (
CA:FALSE); Keyturn refuses a CA certificate. - For console commands (
task,server,stat,console): your name in the Server document's Full Remote Console Administrators field.
- Copy the programs. Put
keyturndandkeyturnin the Domino program directory (wherenserveris). - Add the certificate. Put it under the data directory, for example
keyturn\tls\server.pemandserver.key. A self-signed one for a lab:openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -nodes -days 825 ^ -subj "/CN=mail1" -addext "subjectAltName=DNS:mail1.acme.com" ^ -addext "basicConstraints=critical,CA:FALSE" ^ -addext "keyUsage=critical,digitalSignature,keyEncipherment" ^ -addext "extendedKeyUsage=serverAuth" -keyout server.key -out server.pem - Write
keyturn\keyturnd.conf. One option a line. A full commented copy ships askeyturnd.conf.example.listen = 0.0.0.0:8129 cert = keyturn\tls\server.pem key = keyturn\tls\server.key console # console commands, for Full Remote Console Administrators console-write # also commands that change something (load, tell … quit) otp-create-db # create keyturn\keyturn.nsf for the second factor require-otp # every change needs a one-time code (on by default; always on with Connect or Ray) ssh = 0.0.0.0:2222 # optional SSH front door - Load it at the server console. The console and log.nsf show what it read, the license, and what is switched on.
To start it with the server, add a Program document (program> load keyturnd --config keyturn\keyturnd.conf keyturnd: licence: Keyturn Pro for CN=mail1/O=Acme, licensee Acme Corp, … keyturnd: second factor: keyturn/keyturn.nsf opened; enrollment on keyturnd: listening on https://0.0.0.0:8129 console=on people=off otp=required ssh=0.0.0.0:2222keyturnd, command line--config keyturn\keyturnd.conf, at server startup only). Loaded without--config(for example fromServerTasksin notes.ini), keyturnd readskeyturn\keyturnd.confby itself when it is there and prints a WARNING line saying so; with no file it runs on this machine only (loopback, plain HTTP) and warns about that. - Install the license. For Pro or Site, follow Get and install a paid license below:
keyturn license installputs the file on the server with no restart. For a free Community key, runkeyturn license requestand paste what it prints into the form at kernalworks.com/keyturn, then copy the file tokeyturn\and typetell keyturnd reload. - Open the firewall for TCP 8129 (and 2222 for SSH) to the machines your admins use. keyturnd never touches the firewall.
- Enroll your admins in the second factor (next chapter). Since 0.10.2
require-otpis on by default, and always on while Keyturn Connect or Ray is licensed: anyone not enrolled is told to runkeyturn auth enrollfirst, and nothing changes; reads still work. Without Connect or Ray,require-otp = noopts out, and keyturnd calls that weaker on its load line and inkeyturn license show.
| At the console | What it does |
|---|---|
tell keyturnd show | The "listening on" line and the license line: what is on. |
tell keyturnd reload | Read the license folder again. |
tell keyturnd quit | Stop it. Load it again after you change keyturnd.conf or ssh_keys. |
Get and install a paid license
A Pro or Site license is one signed file per order, listing every server it covers. Each Pro server is named three ways: its canonical name, its Domino domain, and the key of its server ID. Keyturn reads all three from the servers, so you never type server names when you buy. These commands are new in Keyturn 0.10.0 and need keyturnd 0.10.0 on every server.
- Write the request file. Keyturn reads each server's name, domain and server ID key (the public half only, no password) and writes one file for the domain.
$ keyturn license request --offline --context-group domain # writes Acme-license-request.kwreq.json - Upload it at portal.kernalworks.com when you buy. Upload a new one to add or move servers.
- Download the license files from the portal, or let Keyturn fetch them. Make an API token in the portal under Account → API tokens, then:
$ export KEYTURN_PORTAL_TOKEN=kwp_… # or --token-file FILE $ keyturn license fetch # saves keyturn-KT-….license; installs nothing - Install it on every server it names. You need to be a Full Remote Console Administrator, and you'll be asked for a code. keyturnd checks the file names this server before it writes anything, then reads its license folder again. No restart.
$ keyturn license install keyturn-KT-0123456789AB.license --servers mail1,mail2 --fan-out-changes --yes $ keyturn license show --context-group domain
- Adding servers gives you a new file listing all of them, which replaces the old one. Install it the same way.
- Renewing: next year's file can be installed early. It takes over on the day it becomes valid.
- A server ID that is re-keyed or replaced needs a new file: upload a new request file through the portal's move flow. A full copy of
server.id(a disaster-recovery clone) keeps the same key and stays licensed. keyturn license showsays which file is in force and why each other file isn't (superseded, not yet valid, another server, expired, and so on).- License problems only ever make keyturnd read-only. They never stop Domino or keyturnd.
Let clients find every server
Each keyturnd records its URL and certificate fingerprint in its own Server document, signed with the server ID (register-in-directory = yes is the default). Publish one DNS SRV record per mail domain, pointing at any keyturnd, and your admins can connect with just their email address:
_keyturn._tcp.acme.com. 3600 IN SRV 0 0 8129 mail1.acme.com.If clients reach keyturnd at a different name or port than the Server document's host name (NAT, a container port), set register-url = https://host:port to a name that is on the certificate.
The SSH front door (optional)
With ssh = 0.0.0.0:2222, anyone with OpenSSH can run the same commands without installing keyturn. The identity is the SSH key, mapped to a Notes name in keyturn\ssh_keys, then the person's Internet password, then their code. There is no shell: only Keyturn commands run.
# keyturn\ssh_keys: <key type> <key> <Notes name>
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA… CN=Jane Doe/O=Acme
$ ssh -p 2222 jane@mail1 task list -o textEd25519 and ECDSA keys work; RSA keys are refused.
HCL, HCL Domino, Domino, Notes, HCL Traveler, HCL Verse and HCL Nomad are trademarks or registered trademarks of HCL Technologies Limited. Microsoft, Windows, Excel, Power Query and Power BI are trademarks of the Microsoft group of companies. macOS is a trademark of Apple Inc. Linux is the registered trademark of Linus Torvalds. Let's Encrypt is a trademark of the Internet Security Research Group. Claude and Claude Code are trademarks of Anthropic, PBC. Other names may be trademarks of their respective owners. KernalWorks is not affiliated with, sponsored by, or endorsed by any of them.