Ori*_*pax 7 openvpn ubuntu-14.04
我发现了一个类似的线程,但它仍然无法解决我的问题.(OpenVPN Source vars不能用于debian)
我根据https://help.ubuntu.com/14.04/serverguide/openvpn.html设置了OpenVPN
根据以下指南尝试创建证书时出现问题:
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 ../../
Run Code Online (Sandbox Code Playgroud)
当我尝试:
source ./vars
Run Code Online (Sandbox Code Playgroud)
shell给了我回复:
NOTE: If you run ./clean-all, I will be doing a rm -r on /etc/openvpv/easy-rsa/keys
Run Code Online (Sandbox Code Playgroud)
我忽略了它并尝试了下一行:
sudo ./clean-all
Run Code Online (Sandbox Code Playgroud)
然后说:
Please source the vars script first (i.e. "source ./vars")
Make sure you have edited it to reflect your configuration
Run Code Online (Sandbox Code Playgroud)
我在google和stackoverflow中搜索,无法解决问题.
谢谢你的帮助
谁能帮助我?
Fra*_*int 11
输入./build-ca
所有与以前相同的命令,但创建了密钥目录并实际以root身份登录,而不是使用sudo运行它似乎做了伎俩
取自这里:http://ubuntuforums.org/showthread.php?t = 801135
| 归档时间: |
|
| 查看次数: |
11013 次 |
| 最近记录: |