运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

网络 – OpenVPN错误:选项错误:无法识别的选项或缺少或额外的参数

运维开发网 https://www.qedev.com 2020-04-01 10:11 出处:网络 作者:运维开发网整理
我有一个以下格式的ovpn文件. client dev tun proto udp remote MY_IP 1194 resolv-retry infinite nobind persist-key persist-tun mute-replay-warnings ns-cert-type server key-direction 1 cipher AES-128-CBC comp-lzo v
我有一个以下格式的ovpn文件.

client
dev tun
proto udp
remote MY_IP 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1 
cipher AES-128-CBC
comp-lzo
verb 1
mute 20

-----BEGIN CERTIFICATE-----
M---DeletedContent
+Jl7
-----END CERTIFICATE-----


-----BEGIN CERTIFICATE-----
DeletedContentYsuN5d
-----END CERTIFICATE-----


-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,EB9C4DDDD26848F5

PDeletedContent
-----END RSA PRIVATE KEY-----


#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
DeletedContent
-----END OpenVPN Static key V1-----

当我试图用OVPN 2.4.4打开它时出现以下错误:

Options error: Unrecognized option or missing or extra parameter(s) in C:\Users\Stevens\Desktop\user01.ovpn:17: —BEGIN (2.4.4)

Use –help for more information.

Press any key to continue…

17号线是第1号—–开始证书—–.我究竟做错了什么??

您需要将证书包装在合适的块指令中,我的类似文件具有此结构

...
<ca>
-----BEGIN CERTIFICATE-----
... 
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
... 
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
....
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
...
-----END OpenVPN Static key V1-----
</tls-auth>

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消