启动服务器时出现此错误。
Options error: Unrecognized option or missing or extra parameter(s) in server.ovpn:78: ca (2.6_beta1)
Use --help for more information.
仅使用我修改过的示例配置文件。提前谢谢您
port 1194
proto udp
dev tun
ca C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\server.crt
cert C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\issued\\server.crt
key C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\private\\server.key
dh C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
答案1
下列:
ca C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\server.crt
cert C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\issued\\server.crt
key C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\private\\server.key
dh C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\dh2048.pem
应该:
ca “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\server.crt”
cert “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\issued\\server.crt”
key “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\private\\server.key”
dh “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\dh2048.pem”