X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=conf%2FCA%2FnewIntermediate.sh;h=ebd23eeb669cdb8319b6e0f575569642937707ef;hb=12414fe43077e12d7ef711951b1633ad31d73573;hp=b548dd45a3abbe555591f85751d5be949765c85c;hpb=02c1970bc985e1263a141c5ac22dee33ebae2df6;p=aaf%2Fauthz.git diff --git a/conf/CA/newIntermediate.sh b/conf/CA/newIntermediate.sh index b548dd45..ebd23eeb 100644 --- a/conf/CA/newIntermediate.sh +++ b/conf/CA/newIntermediate.sh @@ -1,10 +1,30 @@ +#!/bin/bash +######### +# ============LICENSE_START==================================================== +# org.onap.aaf +# =========================================================================== +# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. +# =========================================================================== +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END==================================================== +# # # Initialize an Intermediate CA Cert. # if [ -e intermediate.serial ]; then ((SERIAL=`cat intermediate.serial` + 1)) else - SERIAL=1 + SERIAL=$(date +%s) fi echo $SERIAL > intermediate.serial DIR=intermediate_$SERIAL