https and email links

skruf

Verified User
Joined
Jun 3, 2004
Messages
634
Location
US
Hey,

I couldn't find any reference to this searching so...

We use SSL for login to DA and if a user tries to click on one of the email (webmail/squirrelmail) links, from within DA, it will open trying to use "https://", which won't work...

This is probably because we use the SSL cert only for DA and not as a shared server cert...

We did it this way as we didn't want a shared cert on the server... Not that we really didn't want it, it just seemed like a like a good thing to do at the time...

So, can someone tell me where I go to change the links on the webmail/squirrelmail so it won't try https? or is that really not an option?

I guess we could simply make the cert shared and that might solve things...

Thoughts?

Thanks, David

I just realized/found out that phpmyadmin also works this way... I probably do want to change the cert... humm...
 
Last edited:
Hey,

FYI...

Making the cert shared does solve that problem...

Guess that was self inflicted... !

David
 
skruf said:
I couldn't find any reference to this searching so...
I can't even find any references under the admin's panels to set up a cert.

So I don't remember how I set up the cert.

Where did you set it up?
We use SSL for login to DA and if a user tries to click on one of the email (webmail/squirrelmail) links, from within DA, it will open trying to use "https://", which won't work...
For our domains, we get site-name errors when we click on either squirrelmail or uebimiau, but they do work.

Jeff
 
Hey Jeff,

Well, this was the first cert I set up so, I could very well have things not quite right...

Logins work just fine for DA, but links from within DA to other stuff, squirrelmail, phpmyadmin, etc. seem to stumble on the https.

I set up the cert, as best as I can tell, just like a cert would be done for any server (followed directions from the cert provider)...

In DA, I configured everything in the directadmin.conf file to reference the cert. I did have to copy the cert key, and .crt files over to the DA directory and change permissions for DA to read them...

I'm guessing the way I made it only available for DA was when I commented out the normal lines in the httpd.conf file that referenced the cert in the virtual container.

Remember, this was the first one I did...so...

David
 
My problem is the opposite...

We install certs almost daily, and I don't remember doing anything specifically for DA system certs at all :( .

Perhaps someone else can help...???

Jeff
 
Do you mean you want to put da under ssl?

or you want a specific certificate for DA under ssl?

or for 3rd party applications?

Chris
 
Hey,

I don't know if the last post was for me but,

I have DA working fine under SSL/Cert...

Where I ran into problems (if you can call it that) was the links within DA for external URLs... Like Squirrelmail/Webmail/phpMyAdmin... etc...

From within DA, because I had only DA using the cert, the links came up as https:// but, they didn't work as the cert was only being used for DA not the server.

I set the cert/config as a shared cert and my problems went away...

Basically, I didn't really want/need the cert to be a shared server cert so I set it up so DA was the only thing using it... But, that broke the external URLs...

Hope that makes sense...

David
 
Hey Brew,

It's working fine...

The only problem I had was running DA with SSL and not sharing the cert.

I was really just experimenting when I disabled the sharing of the cert.

David
 
Hi skruff,

Can u tell me how u do that.really appreciate it.

Thanks.
 
Hey,

Getting DA to work under SSL I followed these instructions:

http://help.directadmin.com/item.php?id=15

If its a bought cert then, use the instructions on the bottom...

For setting Apache to recognize the cert I simply did this:

Change the following lines in the Virtual Host container for SSL on the server:

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/host_cert_here.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/host_key_here.key
SSLCACertificateFile /etc/httpd/conf/ssl.crt/CA_Root_cert_here.crt

Put the files in those paths and change the file names to reflect the actual names of your files.

Hopefully I haven't forgotten something but, I probably have...

David
 
Don't forget to restart DA afterwards:

/etc/rc.d/init.d/directadmin restart

Jeff
 
hi..

i mean for the squirrelmail. when u click "webmail" in the da..it will goes to https:// also...so how?
 
Hey,

I'm guessing our problems were/are different.

When I just made DA use SSL the links to Squirrelmail, etc. tried to use https and that would'nt work...

I setup the cert to be shared on the server and the https links work fine.

I'm guessing your seeing the opposite?

David
 
Back
Top