diff --git a/ovpn-client-management.sh b/ovpn-client-management.sh
index fa9b9da..cb511ef 100644
--- a/ovpn-client-management.sh
+++ b/ovpn-client-management.sh
@@ -104,7 +104,8 @@ createuser() {
createcert() {
cd ${easyrsadir} || execerror ""
sed -i -e '$aset_var EASYRSA_REQ_CN '"${clientname}"'' ${easyrsavar}
- ${easyrsaexe} --passout=pass:"${clientpass}" --passin=pass:${easyrsacap} build-client-full "${clientname}"
+ # ${easyrsaexe} --passout=pass:"${clientpass}" --passin=pass:${easyrsacap} build-client-full "${clientname}"
+ ${easyrsaexe} --passin=pass:"${easyrsacap}" build-client-full "${clientname}" nopass
sed -i '/EASYRSA_REQ_CN/d' ${easyrsavar}
}
@@ -129,7 +130,7 @@ createovpn() {
echo -e '\n'
cat "${easyrsadir}/pki/private/${clientname}.key"
echo -e '\n'
- cat "${easyrsadir}/pki/ta.key"
+ cat "${easyrsadir}/pki/private/ta.key"
echo -e ''
} >> "${ovpncfgdir}/${clientname}.ovpn"
}