This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
Replies: 1 comment 5 replies
-
Hi, Just to help us debug the problem, could you try using self-signed certificates on all services? openssl req -x509 -nodes -days 1825 -newkey rsa:4096 -subj '/CN=localhost' -keyout ${CFG_PATH}/private/jmap.key -out ${CFG_PATH}/certs/jmap.crt
openssl req -x509 -nodes -days 1825 -newkey rsa:4096 -subj '/CN=localhost' -keyout ${CFG_PATH}/private/lmtp.key -out ${CFG_PATH}/certs/lmtp.crt
openssl req -x509 -nodes -days 1825 -newkey rsa:4096 -subj '/CN=localhost' -keyout ${CFG_PATH}/private/rpc.key -out ${CFG_PATH}/certs/rpc.crt I'd like to see if this is a problem related to the certificate files or the mount volumes. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have recently started trying to get the JMAP server running in my k3s homelab cluster, and have run into an issue pretty early on; I assume I'm just missing something easy, but don't have much to go on at the moment.
I'm using the
stalwartlabs/jmap-server:latest
image from docker, and the only log output I get from the server is this:This seems to indicate that something is wrong with the private key associated to the TLS certificate(s). Specifically, it first seemed like (from the
::cluster::rpc::tls
part of the message) that the error is related to the clustering RPC config (as described here https://stalw.art/jmap/cluster/rpc/). That error messages appears to come from thisload_tls_server_config
function:jmap-server/src/cluster/rpc/tls.rs
Lines 75 to 85 in 87cc39c
Unfortunately, it seems like that function is actually also used by the JMAP server:
jmap-server/src/server/http.rs
Lines 243 to 253 in 9edcb2e
and the LMTP server:
jmap-server/src/lmtp/listener.rs
Lines 83 to 93 in 87cc39c
so its a bit difficult to say which one is actually the source of the error.
I'm also fairly sure the certificate files are correctly being mounted into the container; I'm just using a regular volume mount to mount a kubernetes secret into a directory and pointing to that location with environment variables.
If I change any part of this such that these paths no longer match, I (expectedly) get different log output telling me the file couldn't be found:
I had been assuming that the server causing the problem is the LMTP server, based on the first log line, but the error seems more attached to the
JMAP_*
config variables and I get the error even when theLMTP_*
variables are not provided at all.Based on the context around where the error is logged from, it looks like this error is specifically for if the file is found, but the key file fails to be parsed; The certificate / key themselves are being created by cert-manager, and I've looked at the key file itself and it looks like I would expect of a key file, i.e.
I also tried passing
LOG_LEVEL=trace
to get more info, but didn't get any additional log output.So, any thoughts as to what I might be missing?
Beta Was this translation helpful? Give feedback.
All reactions