Koozali.org: home of the SME Server

Update HowTo: SSL Certificates for SME 5.5

Shelby Moore

Update HowTo: SSL Certificates for SME 5.5
« on: January 05, 2003, 10:33:38 AM »
I have updated my HowTo and SSL Certificates for SME 5.5  You no longer need a seperate box to create the key and certificate, it can all be done right from you SME box.  The HowTo can be found here:

http://www.v-cut.com/SME/HowTo/SSL-Certificates-on-SME.htm

If you have any suggestions or comments feel free to email them.

Shelby

Chris

Re: Update HowTo: SSL Certificates for SME 5.5
« Reply #1 on: January 05, 2003, 04:53:14 PM »
cool, very helpful thanks

Tony Howden

Re: Update HowTo: SSL Certificates for SME 5.5
« Reply #2 on: February 28, 2003, 02:38:47 PM »
Hi Shelby

Thanks for your how-to, I have used this successfully to get certificates working on my systems.

Howver I want to complicate things and add multiple certificates to my server.

Now I am sure this is not really an issue for the SSL certificate creation, as all I should need to do is change the file names for each independant url that I want to secure.

i.e secure.domain1.com.key/crt and secure.domain2.com.key/crt can be separate files.

The issue arises within SME and the fact that it only wants to recognise the default domain name certificate in apache, or at least it appears to me that this is the case.

Checking out the various templates I think that the following snippet of code creates the SSL configs in the httpd.conf

from the 80Aliases10SSL     template

                #------------------------------------------------------------
                # SSL Stuff
                #------------------------------------------------------------

                $result .= "    # SSL Directives\n";
                $result .= "\n";
                $result .= "    SSLEngine on\n";
                my %conf = (modSSL => $modSSL);
                my $customCrt = db_get_prop(\%conf, "modSSL", "crt");
                my $crt = $customCrt ? $customCrt :
                        "/home/e-smith/ssl.crt/secure.${DomainName}.crt";
                my $customKey = db_get_prop(\%conf, "modSSL", "key");
                my $key = $customKey ? $customKey :
                        "/home/e-smith/ssl.key/secure.${DomainName}.key";
                $result .= "    SSLCertificateFile $crt\n";
                $result .= "    SSLCertificateKeyFile $key\n";
                $result .= "    SetEnvIf User-Agent \".*MSIE.*\" nokeepalive ";
                $result .= " ssl-unclean-shutdown ";
                $result .= " downgrade-1.0 force-response-1.0\n";
                $result .= "\n";

Where it has the ${DomainName} I want to substitute the virtual domain rather than the default domain.

But I cannot figure out what variable I can use to get at this information. (maybe its just the end of a long day )

The end result should be that I can have multiple SSL crt/key files identified by the specific domain that they relate to and avoid the browser prompts for mismatched SSL cert's.

Any thoughts on how this will work, thanks.

cheers
Tony

Guck Puppy