Thanks
I noticed that post but i didn't notice the difference between @$FQDN and @$DomainName.   
 
This is just what i need. 
But where do i insert my Common Name? 
Is this a remake of the file found in phpwiki or it's the same file as the original from SME only that the @$FQDN and @$DomainName are changed?
The one from the wiki starts with..
{
    use constant KEYLIFEINDAYS => 365;
    use Cwd;
    my $here = getcwd;
    my $FQDN = "$SystemName.$DomainName";
    my $crt = "/home/e-smith/ssl.crt/$FQDN.crt";
    my $key = "/home/e-smith/ssl.key/$FQDN.key";
    my $defaultCity = $ldap{defaultCity};
    my $defaultCompany = $ldap{defaultCompany};
    my $defaultDepartment = $ldap{defaultDepartment};
    my $email = "admin\@$DomainName";
    my $CommonName = "server.example.com";You have probably Modified the CommonName just do the same for email.
Replace  admin\@$DomainName with your email address.
Then 
signal-event domain-modifyAdmittedly, Dmays method is more flexible.