ejabberd - Comments for "Cannot connect to register user" https://www.ejabberd.im/node/620 en Re: Well, I might have made https://www.ejabberd.im/node/620#comment-1323 <div class="quote-msg"> <div class="quote-author"><em>Abbarach</em> wrote:</div> <p>So I downloaded and installed OpenSSL and ran the command to generate a .pem file.</p> <p>Now where should I put this file? In the root ejabberd folder? </p></div> <p>The path where you put the file should match the path you define in the configuration file. If you for example put the certificate in /etc/certificate.ssl , you need to change "./ssl.pem" into "/etc/certificate.ssl" in the configuration file. This is how it works under most operating systems, unfortunately, the "userfriendly" ;) Windows do not use this common and userfriendly path system, so I am not sure how you should convert Windows paths to the configuration file...maybe there is some information elsewhere on the Internet available about this?</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Also, as a sub-question, what do I need to put in the hosts entry if this will be a private in-house network? The machine name? A fully qualified domain name? Just localhost?</p></div> <p>Yes, the machine DNS name: an example, assume I have an internal DNS that gives my computers names. The computer that runs ejabberd has the imaginary name "instantmessaging.box", other computers in my network can ping this server by using that name. In this case you should have a line like this in your configuration file:</p> <pre>{hosts, ["instantmessaging.box"]}.</pre> Tue, 31 Jan 2006 21:27:37 +0000 sander comment 1323 at https://www.ejabberd.im Well, I might have made https://www.ejabberd.im/node/620#comment-1318 <p>Well, I might have made progress...</p> <p>I looked at the settings, and it looks like it came with the SSL/TLS stuff commented out already. So I downloaded and installed OpenSSL and ran the command to generate a .pem file.</p> <p>Now where should I put this file? In the root ejabberd folder? Tried it there, and also installed it as the SSL certificate in Exodus, and now when I connect I get an error that states:<br /> "There was an error trying to authenticate you.<br /> Either you used the wrong password, or the account is already in use by someone else"</p> <p>I've tried multiple accounts, that I know were not in use, (nothing should be in use) and they all give this error.</p> <p>Also, as a sub-question, what do I need to put in the hosts entry if this will be a private in-house network? The machine name? A fully qualified domain name? Just localhost?</p> <p>Thanks for the help, I appreciate it.</p> Mon, 30 Jan 2006 14:45:28 +0000 Abbarach comment 1318 at https://www.ejabberd.im Try deactivating STARTTLS https://www.ejabberd.im/node/620#comment-1310 <p>The default ejabberd configuration references <code>./ssl.pem</code>, a certificate to be used for encryption. Exodus requests encryption by default, but ejabberd just drops the connection if the certificate file is not there.</p> <p>In the configuration file, comment out the lines referencing <code>./ssl.pem</code>, and uncomment the c2s line without tls in the listener section.</p> <p>(At least, that <em>might</em> be what's wrong)</p> Sun, 29 Jan 2006 11:36:11 +0000 legoscia comment 1310 at https://www.ejabberd.im