MT#9547 generate_ssl_keys.sh: add third option to select the name of the certs produced

Change-Id: I2f842376ad0eb904354879b39af24285ffde438a
changes/51/451/1
Victor Seva 11 years ago
parent be7312665f
commit 264a099113

@ -1,9 +1,10 @@
#!/bin/sh
DEST=${1:-/etc/ngcp-panel/api_ssl}
BASE=${2:-/usr/share/ngcp-panel-tools}
FILE=${3:-api_ca}
mkdir -p ${DEST}
/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

Loading…
Cancel
Save