taskserver
taskserver copied to clipboard
Setting the port to 443 (https) results in 'Malformed message' error
vars:
BITS=4096
EXPIRATION_DAYS=365
ORGANIZATION="#####"
CN=task.#####.dev
COUNTRY=###
STATE="#####"
LOCALITY="#####"
docker-compose.yml:
version: '3.3'
services:
taskd:
restart: always
image: connectical/taskd
volumes:
- /opt/task:/var/taskd
ports:
- 53589:53589
networks:
default:
external:
name: caddy_net
Caddyfile:
task.#####.dev {
reverse_proxy taskd:53589
tls {
dns cloudflare #####
}
}
taskrc:
taskd.key=~/Documents/task/client.key.pem
taskd.ca=~/Documents/task/ca.cert.pem
taskd.server=task.#####.dev:443
taskd.credentials=#####/#####/#####-#####-#####
taskd.certificate=~/Documents/task/client.cert.pem
#taskd.trust=allow all
taskd.trust=ignore hostname
Result of task sync init:
Please confirm that you wish to upload all your tasks to the Taskserver (yes/no) yes
Syncing with task.#####.dev:443
Malformed message
Sync failed. Could not connect to the Taskserver.
Does this happen if caddy is circumvented, i.e. connecting via localhost:443?
Are you certain caddy can tunnel a mTLS session? pretty sure reverse_proxy is for http(2) in caddy. The protocol is lines json over mtls with no HTTP use.