create_key_config.sh. add OpenBPN user configuration file named 'client-<NEW_KEY_NAME>.conf' - this name is expected by a script 'ovpn.sh' used by my own.

This commit is contained in:
Christoph 2019-11-05 12:15:08 +01:00
parent 99a5b3237c
commit 7e0e60cc9c

View File

@ -679,6 +679,10 @@ cp -a "$_client_conf_file" "${_target_dir}/${_CLIENT_CN}.ovpn"
if [[ $? -ne 0 ]] ; then if [[ $? -ne 0 ]] ; then
_failed=true _failed=true
fi fi
cp -a "$_client_conf_file" "${_target_dir}/client-${NEW_KEY_NAME}.conf"
if [[ $? -ne 0 ]] ; then
_failed=true
fi
cp -a "${_CLIENT_CERT}" "${_target_dir}/" >> $log_file 2>&1 cp -a "${_CLIENT_CERT}" "${_target_dir}/" >> $log_file 2>&1
if [[ $? -ne 0 ]] ; then if [[ $? -ne 0 ]] ; then
_failed=true _failed=true