Change-Id: I2f842376ad0eb904354879b39af24285ffde438achanges/51/451/1
parent
be7312665f
commit
264a099113
@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
DEST=${1:-/etc/ngcp-panel/api_ssl}
|
DEST=${1:-/etc/ngcp-panel/api_ssl}
|
||||||
BASE=${2:-/usr/share/ngcp-panel-tools}
|
BASE=${2:-/usr/share/ngcp-panel-tools}
|
||||||
|
FILE=${3:-api_ca}
|
||||||
|
|
||||||
mkdir -p ${DEST}
|
mkdir -p ${DEST}
|
||||||
|
|
||||||
/usr/bin/openssl req -x509 -config ${BASE}/opensslcnf.cnf \
|
/usr/bin/openssl req -x509 -config ${BASE}/opensslcnf.cnf \
|
||||||
-newkey rsa:4096 -keyout ${DEST}/api_ca.key -out ${DEST}/api_ca.crt \
|
-newkey rsa:4096 -keyout ${DEST}/${FILE}.key -out ${DEST}/${FILE}.crt \
|
||||||
-days 999 -nodes -batch
|
-days 999 -nodes -batch
|
||||||
|
|||||||
Loading…
Reference in new issue