I am trying to make a VPN using open vpn on my raspberry pi, and I am currently typing a file using the terminal to create a profile script for the devices I want to connect. Using the step by step guide by BBC. I have been trying to fix this problem for about an hour now and I keep getting the same error please help.
#!/bin/bash
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
echo "Please enter an existing Client Name:"
read NAME
if [!-f$NAME$CRT]; then
echo "[ERROR]: Client Public Key Certificate not found: $NAME$CRT"
exit
fi
echo "Client's cert found:$NAME$CR"
if [!-f$NAME$KEY]; then
echo "[ERROR]: Client 3des Private Key not found:$NAME$KEY"
exit
fi
echo "Client's Private Key found:$NAME$KEY"