-- Hi, don't know your email, so I'll leave you a not here as I just wanted to tell you that the line in the openvpn page you eddited that said:
actually was correct. The ". script" syntax tells the shell to read the script to 'source' the script, i.e. read the script in the current shell, so that the variables are set in that shell.
You changed it to
This will run without errors, but also without any effects: the variables are not set in the shell that executes the script.