From ed7912c90fad5ba4a83946af9bf46a9bd3656f23 Mon Sep 17 00:00:00 2001 From: special Date: Tue, 26 Jun 2007 05:22:03 +0000 Subject: Fixed the order of fields in openssl certificate generation; this would make really broken certificates. Thanks to yell0w git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7410 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/opensslcert.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'make') diff --git a/make/opensslcert.pm b/make/opensslcert.pm index 2caad06cd..8de7bd4b1 100644 --- a/make/opensslcert.pm +++ b/make/opensslcert.pm @@ -14,14 +14,15 @@ sub make_openssl_cert() my $country = promptstring_s("Please enter your country (two letter code)", "US"); my $city = promptstring_s("Please enter your city", "Factory Town"); my $email = promptstring_s("Please enter a contact email address", "oompa\@loompa.com"); + my $commonname = promptstring_s("Please enter the common name (domain name) of the irc server", "example.inspircd.org"); print FH <<__END__; $country $state $city $org $unit +$commonname $email -firstname.lastname@yourcompany.com __END__ close(FH); system("cat openssl.template | openssl req -x509 -nodes -newkey rsa:1024 -keyout key.pem -out cert.pem 2>/dev/null"); -- cgit v1.2.3