From 87d8e4eda43c4762d9701130a9966d8bcb17f2db Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Wed, 17 Jun 2009 23:11:19 +0000 Subject: [PATCH] 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 --- scripts/gentls_cert.in | 5 +++++ 1 file changed, 5 insertions(+) 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