A moral prize to the people that could guess what’s wrong
relevant part of the config
{5222, ejabberd_c2s, [ %% %% If TLS is compiled and you installed a SSL %% certificate, put the correct path to the %% file and uncomment this line: %% {certfile, "/usr/local/etc/ejabberd/ssl.pem"}, starttls, {access, c2s}, {shaper, c2s_shaper}, {max_stanza_size, 65536} ]},
relevant log message when you try to login
** Data == {state,#Port<0.367>,<0.374.0>,gen_tcp,"2667452897", {sasl_state,"jabber","jabber.stuff",[], #Fun<ejabberd_c2s.1.132950982>, #Fun<ejabberd_c2s.2.53796002>,undefined, undefined}, c2s,c2s_shaper,false,true,false,false, [{certfile,"/usr/local/etc/ejabberd/ssl.pem"}], false,undefined,[],"jabber.bofh-land.net",[], undefined, {0,nil}, {0,nil}, {0,nil}, {0,nil}, undefined,undefined,undefined,false,none,[]} ** Reason for termination = ** {{badmatch,{error,"SSL_CTX_use_certificate_file failed: error:02001002:system library:fopen:No such file or directory"}}, [{ejabberd_c2s,wait_for_feature_request,2}, {gen_fsm,handle_msg,7}, {proc_lib,init_p,5}]}
relevant file that surprisingly doesn’t seem to exist.
ls -al /usr/local/etc/ejabberd/ssl.pem -rwxrwxrwx 1 ejabberd wheel 1956 Feb 8 14:21 /usr/local/etc/ejabberd/ssl.pem