]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add -days option to set expiration time of certificates in gentls_cert
authorStefan Knoblich <stkn@freeswitch.org>
Wed, 17 Jun 2009 23:11:19 +0000 (23:11 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Wed, 17 Jun 2009 23:11:19 +0000 (23:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13825 d0543943-73ff-0310-b7d9-9358b9ac24b2

scripts/gentls_cert.in

index 0136b5859c313f92cd27576a96113b6347fea3cc..18c762fe1a4493bd6aa45eaef8d99e00ad70ff6c 100644 (file)
@@ -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