Sorry, I was referring to the ssl certs for the virtual domain

My thought was as long I was already setting the ssl port, to set the crt and key also. I am attempting this, and am going to try to set either a string that gives path and name for the cert and key, or just a '#.' if nothing is entered in the db
I have a modified 25SSLdirectives that looks like this
{
return " # skipping SSL directives\n" unless $port eq $sslport;
return "" unless $modSSL{'status'} eq 'enabled';
$OUT = <<SSL_END;
# SSL Directives
SSLEngine on
SSL_END
}
{
#------------------------------------------------------------
# get a list of our virtual hosts and make a hash table so we
# can look up content later
#------------------------------------------------------------
$OUT = '';
use esmith::DomainsDB;
my $db = esmith::DomainsDB->open_ro;
unless ($db)
{
warn "Couldn't open domains DB in VirtualHosts template fragment";
return;
}
my @domains = $db->get_all_by_prop('type' => 'domain');
#------------------------------------------------------------
# generate VirtualHosts - primary domain first
#------------------------------------------------------------
foreach my $domain (
(grep { ($_->prop('SystemPrimaryDomain') || 'no') eq 'yes' } @domains),
(grep { ($_->prop('SystemPrimaryDomain') || 'no') ne 'yes' } @domains),
)
{
my $templatePath = $domain->prop('TemplatePath') || 'VirtualHosts';
my $crt = $domain->prop('vcrt') || " ";
my $key = $domain->prop('vkey') || " ";
$OUT .= <<SSL_END;
SSLCertificateFile $crt
SSLCertificateKeyFile $key
SSL_END
}
}
At this point it is changing all v/domains, It also seems to place an extra 'SSLCertificateFile' in each domain. I think I can get it to work with just a little more tinkering, but I am getting tired.