Repository navigation
Description
What happened?
Im from Debian 13 Trixie. I have installed from stable_v2 repository.
Syncthing version: syncthing v2.1.3 "Hafnium Hornet" (go1.26.5 linux-amd64) [email protected] 2026-08-03 21:36:05 UTC [noupgrade]
I'm trying to deploy my very own key/cert. The default is the secp384r1; personally I would use the secp521r1 or even better the ED/EX curves. Based on that, for my own, I have tried to deploy ED25519 key, and it worked:
syncthing_dir="$HOME/.local/state/syncthing"
rm -rf "$syncthing_dir"
mkdir -p "$syncthing_dir"
openssl req -x509 -nodes -days 3660 -sha512 \
-newkey ed25519 \
-keyout "$syncthing_dir"/key.pem -out "$syncthing_dir"/cert.pem \
-subj "/O=Syncthing/OU=Automatically Generated/CN=syncthing" \
-addext "basicConstraints = critical, CA:FALSE" \
-addext "keyUsage = critical, digitalSignature, keyEncipherment" \
-addext "extendedKeyUsage = serverAuth, clientAuth" \
-addext "subjectAltName = DNS:syncthing"
The output for ED25519:
$ syncthing generate
2026-08-12 19:24:41 WRN Key exists; will not overwrite (log.pkg=github)
2026-08-12 19:24:41 INF Calculated device ID (device=REUGOCM-N2SECO2-S5OXZT2-NCNQTT4-LQXQKPQ-BWMQUXE-X3J7D3B-HWGOKQN log.pkg=github)
The issue raises ff I "upgrade" to ED448:
syncthing_dir="$HOME/.local/state/syncthing"
rm -rf "$syncthing_dir"
mkdir -p "$syncthing_dir"
openssl req -x509 -nodes -days 3660 -sha512 \
-newkey ed448 \
-keyout "$syncthing_dir"/key.pem -out "$syncthing_dir"/cert.pem \
-subj "/O=Syncthing/OU=Automatically Generated/CN=syncthing" \
-addext "basicConstraints = critical, CA:FALSE" \
-addext "keyUsage = critical, digitalSignature, keyEncipherment" \
-addext "extendedKeyUsage = serverAuth, clientAuth" \
-addext "subjectAltName = DNS:syncthing"
The output for ED448:
$ syncthing generate
2026-08-12 19:36:46 INF Generating key and certificate (cn=syncthing log.pkg=syncthing)
2026-08-12 19:36:46 INF Calculated device ID (device=QU7UJFB-XJZCBYE-PUYA37Q-YQX4GLD-UKWEW7L-GKEA6E3-B5Z6B43-QH2RJAZ log.pkg=github)
And (strangely) the key generated is an ED25519 (not a secp384r1 anymore)
During generation, Syncthing recognizes the key with ED25519 algorithm and skips it, but it doesnt with the ED448 one.
Being already implemented the ED25519, the ED448 should be simple to be recognized (I hope/think) and skip the overwriting.
Syncthing version
v2.1.3
Platform & operating system
Linux amd64 debian 13 Trixie
Activity
calmh commentedon Aug 13, 2026
It is not supported by the Go standard library, so not supported by Syncthing either. If/when that changes in Go it will change in Syncthing as well.