我正在尝试按照以下步骤在全新安装的 Ubuntu Server 16.04 上安装 OpenVPN本文在文档中。在“公钥基础设施设置”部分,我从“clean-all”脚本和“build-ca”脚本中收到错误。
cd /etc/openvpn/easy-rsa/
source vars
./clean-all
./build-ca
错误是:
Please source the vars script first (i.e. "source ./vars")
Make sure you have edited it to reflect your configuration.
问题是我已经这样做过很多次了。这是操作系统的全新安装。我安装了操作系统,然后按照说明安装和设置 OpenVPN。然后就发生了这种情况。
可能是什么问题呢?
提前致谢
答案1
> This is how I solve the problem ... bob@ns1:~$ sudo chown bob:bob
> /etc/openvpn/easy-rsa/ bob@ns1:~$ cd /etc/openvpn/easy-rsa/
> bob@ns1:/etc/openvpn/easy-rsa$ ls -la bob@ns1:/etc/openvpn/easy-rsa$
> source vars NOTE: If you run ./clean-all, I will be doing a rm -rf on
> /etc/openvpn/easy-rsa/
> keys bob@ns1:/etc/openvpn/easy-rsa$ ./clean-all
> bob@ns1:/etc/openvpn/easy-rsa$ ./build-ca Generating a 2048 bit RSA
> private key