The perfect choice of one-stop service for diversification of architecture.
I have the private key in PEM format, the certificate in .crt and the chain in .ca-bundle
In the /opt/ejabberd/conf/ejabberd.yml there is a line that says:
certfiles: - /opt/ejabberd/conf/server.example.com.crt - /opt/ejabberd/conf/server.example.com.ca-bundle - /opt/ejabberd/conf/privkey.pem
for the privkey.pem I had to remove passphrase as ejabberd services could not start. It failed to read the private key.
My question is: Do I have to have a single PEM file where I will cat privkeycertchain?
I tried both options and it works the same for Gajim client required to do TLS on connection. In may case is easier to leave three lines in config each pointing to proper container.
Anyway, I have a gajim windows XMPP client that connects fine with TLS required to the server and no errors and it's using TLS
When I try to connect another JID via an Android device I get this: Accept Unkonwn Certificate? The server certificate is not signed by a known Certificate AUthority.
Why would I get this? While in Android I have the option to "Always accept" which I do not want to do anyway, since I'm using a signed certificate from Authority, the apple devices don't even give the option to accept anything and TLS connection breaks.
I have tried multiple things but I still get this pop up in android.
Is this entry:
certfiles: - /opt/ejabberd/conf/server.example.com.crt - /opt/ejabberd/conf/server.example.com.ca-bundle - /opt/ejabberd/conf/privkey.pem
Global? Meaning if I specify certfiles here I do not have to specify per each module? like for c2S module, do I have to specify the path for cert file?
listen: - port: 5222 module: ejabberd_c2s ## ## If TLS is compiled in and you installed a SSL ## certificate, specify the full path to the ## file and uncomment these lines: ## ## certfile: "/path/to/ssl.pem" ## starttls: true
Thanks in advance.
·OTHER ANSWER:
I am trying to configure a certificate for usage with my ejabberd server. This is not a self-signed cert but one from PossitiveSSL from Comodo valid for 1 year. Cert is not expired.
I have the private key in PEM format, the certificate in .crt and the chain in .ca-bundle
In the /opt/ejabberd/conf/ejabberd.yml there is a line that says:
certfiles: - /opt/ejabberd/conf/server.example.com.crt - /opt/ejabberd/conf/server.example.com.ca-bundle - /opt/ejabberd/conf/privkey.pem
for the privkey.pem I had to remove passphrase as ejabberd services could not start. It failed to read the private key.
My question is: Do I have to have a single PEM file where I will cat privkeycertchain?
I tried both options and it works the same for Gajim client required to do TLS on connection. In may case is easier to leave three lines in config each pointing to proper container.
Anyway, I have a gajim windows XMPP client that connects fine with TLS required to the server and no errors and it's using TLS
When I try to connect another JID via an Android device I get this: Accept Unkonwn Certificate? The server certificate is not signed by a known Certificate AUthority.
Why would I get this? While in Android I have the option to "Always accept" which I do not want to do anyway, since I'm using a signed certificate from Authority, the apple devices don't even give the option to accept anything and TLS connection breaks.
I have tried multiple things but I still get this pop up in android.
Is this entry:
certfiles: - /opt/ejabberd/conf/server.example.com.crt - /opt/ejabberd/conf/server.example.com.ca-bundle - /opt/ejabberd/conf/privkey.pem
Global? Meaning if I specify certfiles here I do not have to specify per each module? like for c2S module, do I have to specify the path for cert file?
listen: - port: 5222 module: ejabberd_c2s ## ## If TLS is compiled in and you installed a SSL ## certificate, specify the full path to the ## file and uncomment these lines: ## ## certfile: "/path/to/ssl.pem" ## starttls: true
Thanks in advance.