From ed4c6ebd192c2339c7b3f199f8107eaff243153a Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Thu, 16 Aug 2007 22:51:56 +0000 Subject: initial import --- rpm-helper.macros.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm-helper.macros.in b/rpm-helper.macros.in index fe53b1a..0204544 100644 --- a/rpm-helper.macros.in +++ b/rpm-helper.macros.in @@ -13,7 +13,7 @@ %{nil} %_create_ssl_certificate_helper %_rpm_helper_dir/create-ssl-certificate -%create_ssl_certificate() %_create_ssl_certificate_helper %{name} $1 %{1} %{2} %{3} \ +%create_ssl_certificate() %_create_ssl_certificate_helper %{name} $1 %{1} %{2} %{?3} \ %{nil} # initscripts macros -- cgit v1.2.1 -- cgit v1.2.1 -- cgit v1.2.1 -- cgit v1.2.1 -- cgit v1.2.1 From c8be34886c11347fa4482a14687a4d7f89cc5ef4 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Thu, 16 Aug 2007 22:52:24 +0000 Subject: allow local configuration --- create-ssl-certificate | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/create-ssl-certificate b/create-ssl-certificate index 595a439..784d0e4 100755 --- a/create-ssl-certificate +++ b/create-ssl-certificate @@ -14,7 +14,19 @@ bundle=$4 # bundle mode group=$5 # group with read access on key if [ $num = 1 ]; then + # default values host=$(hostname) + KEY_LENGTH=1024 + CERT_DAYS=365 + EMAIL_ADDRESS=root@$host + COMMON_NAME=$host + ORGANISATIONAL_UNIT_NAME="default $srv cert for $host" + + # source configuration + if [ -f /etc/sysconfig/ssl ]; then + . /etc/sysconfig/ssl + fi + conffile=/tmp/$$ keyfile=/etc/pki/tls/private/$pkg.pem if [ "$bundle" == true ]; then @@ -25,23 +37,23 @@ if [ $num = 1 ]; then # create a temporary configuration file cat > $conffile </dev/null 2>&1 -- cgit v1.2.1 From b6c3e2718fca6727ed8efcf5f5d9826278fae3dc Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Thu, 16 Aug 2007 22:52:26 +0000 Subject: bump release --- Makefile | 2 +- NEWS | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7402a6b..c635a51 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKAGE = rpm-helper -VERSION = 0.19 +VERSION = 0.19.1 SVNPATH = svn+ssh://svn.mandriva.com/svn/soft/rpm/$(PACKAGE) SCRIPT_FILES = add-user del-user add-service del-service create-file \ diff --git a/NEWS b/NEWS index 00a28fc..635f58f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +2007-08-17 Guillaume Rousse 0.19.1 + * fix usage of ssl certificate creation helper without 3rd argument + * allow local certificate configuration + 2007-06-29 Guillaume Rousse 0.19.0 * new ssl certificate creation helper * renamed ChangeLog to NEWS -- cgit v1.2.1