Current time: 06-02-2024, 11:46 AM Hello There, Guest! (LoginRegister)


Post Reply 
SSL support - script and instructions
Author Message
Feyr Offline


Posts: 4
Joined: Aug 2008
Reputation: 0
Post: #5
RE: SSL support - script and instructions
(04-06-2009 04:57 AM)sseitz Wrote:  Thanks for this!

By now your script ignores domainnames with dashes in it. I'm not really good in Perl Regexp, but I assume changing line 41 to
Code:
my @servname=map { $_ =~ /^\s+Servername\s+([\w-.]+)/i; $1 } grep(/ServerName/i, @tmpvirthost);

will do the trick.

cheers,

Stephan

nice catch, yes that's indeed the place to change it

i'm attaching a new version with this fix included, i also added a feature to it since then that i didn't post

if there's a file ending with .CA matching an existing .pem file in /etc/apache2/ssl, it will add a "SSLCACertificateFile" with its path to the virtualhost of that site. this allows for chained certificates (like netsolssl.com does and probably a bunch of others)
.txt  upd-ssl.pl.txt (Size: 1.53 KB / Downloads: 61)
04-06-2009 07:17 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: SSL support - script and instructions - Feyr - 04-06-2009 07:17 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)