Using cacert.org

These are old archives. They are kept for historic purposes only.
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Using cacert.org

Post by Lypsik »

Sorry for the dumb question, but how do I use the certificate I got from cacert?
Ron2K

Post by Ron2K »

Give it the correct name (which has slipped my mind at the moment, sorry), and overwrite the old one.
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post 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)
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf »

See the log file in which you log errors.
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post 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
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post by Lypsik »

The problem still isn't solved. I want help. :roll:
Ron2K

Post 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.
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post 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. :?
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post 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?
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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 :) .)
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post 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.
Winbots
Posts: 65
Joined: Wed Apr 21, 2004 12:26 am
Location: irc://irc.winbots.org/Winbots
Contact:

Post by Winbots »

when you requested a cert from cacert, did you use the data from the server.req.pem file?
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post 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.
Lypsik
Posts: 12
Joined: Thu Aug 26, 2004 4:30 am
Location: Estonia
Contact:

Post 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.
...
Vickie
Posts: 7
Joined: Fri Aug 27, 2004 2:22 pm

Post by Vickie »

This is most likely a permission issue. Does the user running the ircd daemon have read access to the certificate file?
Post Reply