DirectADmin's SSL

Check /var/log/directadmin/error.log
it doesn't say more than:
Code:
2010:01:05-21:51:43: error loading certificate key
2010:01:05-21:51:45: error loading certificate key
2010:01:05-21:51:46: error loading certificate key
 
What do you mean by a reseller of yours? DirectAdmin doesn't have license resellers. If you mean you got the license with a dedicated server, then that's allowed, but if you actually bought a license to use on your own server, then you should contact DirectAdmin Sales to find out if you've got a valid license.

DirectAdmin's logs are found in:

/var/log/directadmin/

Jeff
 
This recently happened to me when I enabled SSL.

I would change the config to =1, restart directadmin, and it would crash instantly. When I ran the command "service directadmin status" it said the PID was still there but the process was dead.

After trying everything I enabled it, tried to restart it again but had the same problem. But this time I restarted the server after making the change and once the server came back up it works fine (it can now be stopped and started without any crashing).

I don't know exactly why this worked but it may be a DA issue.

-Mike
 
Glad to hear you got it working.

You might want to also look into adding the following to your .htaccess file to make things easier on you an your clients.

Redirect 302 /cp https://www.YOURDOMAIN:2222
Redirect 302 /billing https://www.YOURDOMAIN.com/billing

This might make it easier on you or your clients. I had to add this for my billing system so when someone goes to mydomain.com/billing it takes them to the secure site rather than the non secure site.

This also helped me because when my users try to use their domain userdomain.com:2222 the SSL cert will not work so now I have them all going to mydomain.com/cp in order to use the control panel and it seems to work out well.

Hope this helps,
Mike
 
Last edited:
Glad to hear you got it working.

You might want to also look into adding the following to your .htaccess file to make things easier on you an your clients.

Redirect 302 /cp https://www.YOURDOMAIN:2222
Redirect 302 /billing https://www.YOURDOMAIN.com/billing

This might make it easier on you or your clients. I had to add this for my billing system so when someone goes to mydomain.com/billing it takes them to the secure site rather than the non secure site.

This also helped me because when my users try to use their domain userdomain.com:2222 the SSL cert will not work so now I have them all going to mslhost.com/cp in order to use the control panel and it seems to work out well.

Hope this helps,
Mike
thanks,
but I already have those settings suiting my needs...
 
a new related problem

Hi,
after sucessfully installing the SSL for DA itself, I've encountered a problem when a user tries to access phpMyAdmin, through: <my_domain.com>/phpmyadmin - either HTTP or HTTPS will generate a browser message saying that the SSL is not recognized.

shouldn't that be part of the same SSL I've installed?
as accessing https://<my_domain_.com>:2222 does work as expected...
 
No it would have to be installed in apache. Directadmin and apache are totally independant.
 
If the Cert is for what you call <my_domain.com> then the Certificate has to be installed for <my_domain.com>. You can do that through the control panel by copying the private key and the cert itself into the proper window and saving.

Jeff
 
If the Cert is for what you call <my_domain.com> then the Certificate has to be installed for <my_domain.com>. You can do that through the control panel by copying the private key and the cert itself into the proper window and saving.

Jeff
regardless of the fact that I already added the same SSL for DA (which uses the same domain)?
 
regardless of the fact that I already added the same SSL for DA (which uses the same domain)?

Yes, like scsi mentioned above:

No it would have to be installed in apache. Directadmin and apache are totally independant.

DA know about the cert... Apache does not.

David
 
Yes, like scsi mentioned above:



DA know about the cert... Apache does not.

David
I cannot add the SSL Certificate to that domain, cause I can't add that domain to directadmin:
Code:
That is the hostname which is reserved. Either change the hostname, or use a different domain
 
You cannot create a domain name the same as the hostname. You can add the files manually and make changes to either the main httpd.conf file or one of the files it calls.

Jeff
 
You cannot create a domain name the same as the hostname. You can add the files manually and make changes to either the main httpd.conf file or one of the files it calls.

Jeff
any guide on how to do this?
 
Back
Top