From: Stefan Knoblich Date: Wed, 17 Jun 2009 23:11:19 +0000 (+0000) Subject: Add -days option to set expiration time of certificates in gentls_cert X-Git-Tag: v1.0.4~444 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87d8e4eda43c4762d9701130a9966d8bcb17f2db;p=thirdparty%2Ffreeswitch.git Add -days option to set expiration time of certificates in gentls_cert git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13825 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/scripts/gentls_cert.in b/scripts/gentls_cert.in index 0136b5859c..18c762fe1a 100644 --- a/scripts/gentls_cert.in +++ b/scripts/gentls_cert.in @@ -155,6 +155,10 @@ while [ $# -gt 0 ]; do shift OUTFILE="$1" ;; + -days) + shift + DAYS="$1" + ;; esac shift done @@ -197,6 +201,7 @@ case ${command} in -alt Set alternative name (use prefix 'DNS:' or 'URI:') -org Set organization name -out Filename for new certificate (create only) + -days Certificate expires in X days (default: 365) EOF exit 1