/[pdpsoft]/nl.nikhef.pdp.tcs/nl.nikhef.pdp.tcs.tcsg4-tools/trunk/tcsg4-install-servercert.sh
ViewVC logotype

Diff of /nl.nikhef.pdp.tcs/nl.nikhef.pdp.tcs.tcsg4-tools/trunk/tcsg4-install-servercert.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3295 by davidg, Sat Jun 20 08:57:42 2020 UTC revision 3296 by davidg, Thu Jul 9 10:15:39 2020 UTC
# Line 33  bckprefix=backup Line 33  bckprefix=backup
33  makecsr=0  makecsr=0
34  nameformat=friendly  nameformat=friendly
35  certfn=  certfn=
36    profile=""
37    
38  # ############################################################################  # ############################################################################
39  # usage help and instructions  # usage help and instructions
# Line 237  do Line 238  do
238        mv "$destdir/cert-$credbase.pem" "$destdir/$bckprefix.$DATE.cert-$credbase.pem"        mv "$destdir/cert-$credbase.pem" "$destdir/$bckprefix.$DATE.cert-$credbase.pem"
239      fi      fi
240      cat $i > "$destdir/cert-$credbase.pem"      cat $i > "$destdir/cert-$credbase.pem"
241    
242        case "$issuercn" in
243        GEANT\ OV\ *) profile="ov" ;;
244        GEANT\ EV\ *) profile="ev" ;;
245        GEANT\ eScience\ *) profile="igtfov" ;;
246        * ) profile="" ;;
247        esac
248    fi    fi
249    
250  done  done
# Line 275  cat "$destdir/cert-$certfn.pem" "$destdi Line 283  cat "$destdir/cert-$certfn.pem" "$destdi
283      > "$destdir/nginx-$certfn.pem"      > "$destdir/nginx-$certfn.pem"
284    
285  # ############################################################################  # ############################################################################
286    # make per-profile copies in case of key re-use for same host new profile
287    #
288    if [ "$profile" != "" ]; then
289      [ -f "$destdir/cert-$certfn.pem" ] && cp -p "$destdir/cert-$certfn.pem" "$destdir/$profile-cert-$certfn.pem"
290      [ -f "$destdir/chain-$certfn.pem" ] && cp -p "$destdir/chain-$certfn.pem" "$destdir/$profile-chain-$certfn.pem"
291      [ -f "$destdir/nginx-$certfn.pem" ] && cp -p "$destdir/nginx-$certfn.pem" "$destdir/$profile-nginx-$certfn.pem"
292    fi
293    
294    # ############################################################################
295  # inform user of result and of globus compatibility  # inform user of result and of globus compatibility
296  #  #
297  echo "The following files have been created for you:"  echo "The following files have been created for you:"

Legend:
Removed from v.3295  
changed lines
  Added in v.3296

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28