关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。
想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。
3年前关闭。
Improve this question
我发现了一个类似的线程,但它仍然没有解决我的问题。( OpenVPN Source vars not working on debian )
我正在根据
https://help.ubuntu.com/14.04/serverguide/openvpn.html
当我尝试根据以下指南创建证书时出现问题:
cd /etc/openvpn/easy-rsa/ ## move to the easy-rsa directory
sudo chown -R root:admin . ## make this directory writable by the system administrators
source ./vars ## execute your new vars file
./clean-all ## Setup the easy-rsa directory (Deletes all keys)
./build-dh ## takes a while consider backgrounding
./pkitool --initca ## creates ca cert and key
./pkitool --server server ## creates a server cert and key
cd keys
openvpn --genkey --secret ta.key ## Build a TLS key
cp server.crt server.key ca.crt dh1024.pem ta.key ../../
当我尝试:
source ./vars
shell 给了我:
NOTE: If you run ./clean-all, I will be doing a rm -r on /etc/openvpv/easy-rsa/keys
我忽略了它并尝试了下一行:
sudo ./clean-all
然后它说:
Please source the vars script first (i.e. "source ./vars")
Make sure you have edited it to reflect your configuration
我在谷歌和stackoverflow中搜索,未能解决问题。
谢谢你的帮助
有人可以帮助我吗?
最佳答案
sudo su
以 root 身份登录 easy-rsa/2.0/
中)mkdir keys
source ./vars
./clean-all
./build-ca
所有与以前相同的命令,但已创建 key
目录并实际以 root 身份登录,而不是运行
它与 sudo 似乎可以解决问题
取自此处:http://ubuntuforums.org/showthread.php?t=801135
关于ubuntu-14.04 - 当我想运行 source ./vars 和 ./clean-all 时无法创建证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27221273/