Trouble with server certificate key loading in DA

nealdxmhost

Verified User
Joined
Jan 1, 2009
Messages
237
Location
Los Angeles CA
I tried to update the server SSL on one of the servers I inherited from Jeff and when I go to restart DA afterwards DA ends up stopping because of an error loading the certificate key. What am I missing? I have done this on a few other servers but this one has me baffled.

Here is the output of the error log:

Code:
cat /var/log/directadmin/error.log
2016:01:18-08:08:47: Socket write error: fd is connected to a pipe or socket whose reading end is closed.  When this  happens the writing process will also receive a SIG_PIPE signal.  (Thus, the write return value is seen only if  the program catches, blocks or ignores this signal.)
2016:01:18-08:09:01: The username hasn't been set.  Won't run the script without dropping privileges
2016:01:18-20:29:24: error loading certificate key
2016:01:18-20:29:24: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:30:01: error loading certificate key
2016:01:18-20:30:01: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:30:06: error loading certificate key
2016:01:18-20:30:06: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:31:01: error loading certificate key
2016:01:18-20:31:01: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:31:06: error loading certificate key
2016:01:18-20:31:06: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:54:47: error loading certificate key
2016:01:18-20:54:47: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:55:01: error loading certificate key
2016:01:18-20:55:01: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:55:07: error loading certificate key
2016:01:18-20:55:07: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:56:02: error loading certificate key
2016:01:18-20:56:02: error:00000000:lib(0):func(0):reason(0)
2016:01:18-20:56:07: error loading certificate key
2016:01:18-20:56:07: error:00000000:lib(0):func(0):reason(0)
2016:01:18-21:06:54: error loading certificate key
2016:01:18-21:06:54: error:00000000:lib(0):func(0):reason(0)
 
I know this was 2 or more years ago, but I sure wish that you posted how you fixed it. I'm running into it now since updating our cert.
 
Hello,

The most common issues with SSL cert/keys are that they do not match each other. It might happen if for any reasons a new key was not properly saved in Directadmin server when you created a CSR and now you try to load a new certificate with an old key.

If this is the case, then you need to re-issue your cert, but make sure this time you have a valid key in a safe place.
 
Hello,

The most common issues with SSL cert/keys are that they do not match each other. It might happen if for any reasons a new key was not properly saved in Directadmin server when you created a CSR and now you try to load a new certificate with an old key.

If this is the case, then you need to re-issue your cert, but make sure this time you have a valid key in a safe place.

Thank you. After some digging and a bit of consternation it turned out to be a problem with the cacert file. There was nothing wrong with the key file at all. The path was right, permissions right. Key file was fine.




edit - the random question to submit this post was a piece of ___
apparently pie was not the answer.
 
Back
Top