Browse Source

Use Absolute path in zk-ca.sh for openssl config

The zk-ca.sh tool for generating certificates fails with
and error that ./tools/openssl.cnf cannot be opened if a
relative path is supplied on ubuntu-bionic. So expand the
path to an absolute path instead.

http://paste.openstack.org/show/794091/

Change-Id: Ib30e9754d4520b956e83cae014c1be181ae44631
changes/84/731484/3
Albin Vass 11 months ago
parent
commit
1f4cdfbd93
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/zk-ca.sh

+ 2
- 1
tools/zk-ca.sh View File

@ -21,7 +21,8 @@ SERVER=$2
SUBJECT='/C=US/ST=California/L=Oakland/O=Company Name/OU=Org'
TOOLSDIR=$(dirname $0)
CONFIG="-config $TOOLSDIR/openssl.cnf"
ABSTOOLSDIR=$(cd $TOOLSDIR ;pwd)
CONFIG="-config $ABSTOOLSDIR/openssl.cnf"
make_ca() {
mkdir $CAROOT/demoCA


Loading…
Cancel
Save