Page 1 of 2

Using cacert.org

Posted: Thu Aug 26, 2004 4:40 am
by Lypsik
Sorry for the dumb question, but how do I use the certificate I got from cacert?

Posted: Thu Aug 26, 2004 6:29 am
by Ron2K
Give it the correct name (which has slipped my mind at the moment, sorry), and overwrite the old one.

Posted: Mon Aug 30, 2004 6:23 pm
by Lypsik
That should be server.cert.pem.
But now...

Code: Select all

* Loading IRCd configuration ..
* Configuration loaded without any problems ..
* Loading tunefile..
* Initializing SSL.
Possible error encountered (IRCd seemily not started)

Posted: Mon Aug 30, 2004 11:48 pm
by AngryWolf
See the log file in which you log errors.

Posted: Tue Aug 31, 2004 2:11 pm
by Lypsik
I wonder why I didn't check the log at first anyway... :roll:
But anyway, here it is:
[Mon Aug 30 21:18:54 2004] - Failed to load SSL private key server.key.pem

Posted: Tue Sep 28, 2004 10:42 pm
by Lypsik
The problem still isn't solved. I want help. :roll:

Posted: Wed Sep 29, 2004 7:38 am
by Ron2K
Several possibilities that I can think of:
  1. You put the file in the wrong place. Double-check.
  2. Use set::ssl::key (I think that's the right one) and see if it goes away. Can be used in conjunction with the previous possibility.
  3. If not, there's might be a problem with the certificate itself. Unfortunately, I don't know enough about SSL to help you further.

Posted: Wed Sep 29, 2004 12:27 pm
by Lypsik
Lypsik wrote:That should be server.cert.pem.
But now...

Code: Select all

* Loading IRCd configuration ..
* Configuration loaded without any problems ..
* Loading tunefile..
* Initializing SSL.
Possible error encountered (IRCd seemily not started)
I just noticed that after this text it says:
tail: cannot open `/home/ircd/Unreal3.2/ircd.log' for reading: No such file or directory
But in the unrealircd.conf I have set the error log to be ircderr.log
And despite the error, it still logs in to the correct file. :?

Posted: Wed Sep 29, 2004 1:00 pm
by Lypsik
Ron2K wrote:Several possibilities that I can think of:
  1. You put the file in the wrong place. Double-check.
  2. Use set::ssl::key (I think that's the right one) and see if it goes away. Can be used in conjunction with the previous possibility.
  3. If not, there's might be a problem with the certificate itself. Unfortunately, I don't know enough about SSL to help you further.
  1. That is not the problem - I checked it several times.
  2. I'm not sure what do you mean by "use", but I did all sort of stuff with it:
    * I commented it out
    * I renamed the file that set::ssl::key was pointing to (so there would be no file)
    * I tried to use an empty file
    Nothing helped.
  3. I think the cert is fine, but the key file is the problem.
Inside the original server.key.pem that is created in the end of ./Config (the one I have) is this text:
-----BEGIN RSA PRIVATE KEY-----

But isn't this a self signed thing (because it was created with the server.cert.pem)? Shouldn't I get a new one from CaCert?

Posted: Wed Sep 29, 2004 3:58 pm
by aquanight
Hm... well, for every public certificate, there should be a private key. You really should've got a private key file from cacert.org to drop into the same folder. If you didn't, you might need to go and raise a loud complaint :) , because I've noticed that you have server.cert.pem, but not server.key.pem - both of which are needed.

And for the record, had it been the other way around (you have the private key but not the public one), IIRC you can regenerate the public key if you have the private one.

So of course, you may verify that the certificate you have really is the public key, and not the private one. If it's the private one, then rename it to server.key.pem and use openssl to regenerate the public one. Realize that the RSA PRIVATE KEY whatever line you saw in the .key.pem that ./Config generated - I believe all private keys begin with that line, but I'm not to sure. So maybe do a cat server.cert.pem (or type server.cert.pem for Win32) and see if that line is there.

(Of course, what I said could be wrong :) .)

Posted: Wed Sep 29, 2004 4:12 pm
by Lypsik
server.cert.pem starts with this: -----BEGIN CERTIFICATE-----
This is the same for both files: the one I got from cacert and the one Config generated.

Posted: Sun Oct 03, 2004 6:20 am
by Winbots
when you requested a cert from cacert, did you use the data from the server.req.pem file?

Posted: Sun Oct 03, 2004 6:42 am
by Lypsik
Winbots wrote:when you requested a cert from cacert, did you use the data from the server.req.pem file?
Yes, I did.

Posted: Sat Oct 23, 2004 9:08 pm
by Lypsik
Lypsik wrote:
Winbots wrote:when you requested a cert from cacert, did you use the data from the server.req.pem file?
Yes, I did.
...

Posted: Tue Oct 26, 2004 10:21 pm
by Vickie
This is most likely a permission issue. Does the user running the ircd daemon have read access to the certificate file?