From c3ca46e074d73b7aca3fb6331203552968119070 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Tue, 25 Sep 2018 08:25:52 -0500 Subject: CA serial Issue-ID: AAF-517 Change-Id: I5306f9e6e5c2692a2f4a96ff25fb7badc5a586db Signed-off-by: Instrumental --- conf/CA/bootstrap.sh | 2 +- conf/CA/newCA.sh | 2 +- conf/CA/newIntermediate.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'conf/CA') diff --git a/conf/CA/bootstrap.sh b/conf/CA/bootstrap.sh index 10290075..fba4d6a8 100644 --- a/conf/CA/bootstrap.sh +++ b/conf/CA/bootstrap.sh @@ -9,7 +9,7 @@ chmod 755 certs newcerts touch index.txt echo "unique_subject = no" > index.txt.attr if [ ! -e ./serial ]; then - echo '01' > ./serial + echo $(date +%s) > ./serial fi NAME=aaf.bootstrap diff --git a/conf/CA/newCA.sh b/conf/CA/newCA.sh index 49b12c3f..698307a5 100644 --- a/conf/CA/newCA.sh +++ b/conf/CA/newCA.sh @@ -9,7 +9,7 @@ touch index.txt echo "unique_subject = no" > index.txt.attr if [ ! -e serial ]; then - echo '01' > serial + echo $(date +%s) > serial fi if [ "$1" == "" ]; then diff --git a/conf/CA/newIntermediate.sh b/conf/CA/newIntermediate.sh index b548dd45..e09a4fcf 100644 --- a/conf/CA/newIntermediate.sh +++ b/conf/CA/newIntermediate.sh @@ -4,7 +4,7 @@ if [ -e intermediate.serial ]; then ((SERIAL=`cat intermediate.serial` + 1)) else - SERIAL=1 + SERIAL=$(date +%s) fi echo $SERIAL > intermediate.serial DIR=intermediate_$SERIAL -- cgit 1.2.3-korg