You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/tools/generate_ssl_keys.sh

10 lines
255 B

#!/bin/sh
BASE="/usr/share/ngcp-panel-tools"
DEST=${1:-/etc/ngcp-panel/api_ssl}
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 \
-days 999 -nodes -batch