我购买了 Raspberry Pi 3 Model 3 来设置 VPN 服务器,遵循本指南:https://sys.jonaharagon.com/2016/05/12/setting-up-an-openvpn-server-on-a-raspberry-pi-2-part-12/
完成后,我能够获取 .ovpn 文件并将其导入 OpenVPN 客户端,但出现以下错误:
Sat Apr 22 00:09:40 2017 OpenVPN 2.4.1 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Mar 22 2017
Sat Apr 22 00:09:40 2017 Windows version 6.2 (Windows 8 or greater) 64bit
Sat Apr 22 00:09:40 2017 library versions: OpenSSL 1.0.2k 26 Jan 2017, LZO 2.09
Enter Management Password:
Sat Apr 22 00:09:41 2017 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Sat Apr 22 00:09:41 2017 OpenSSL: error:0906D06C:PEM routines:PEM_read_bio:no start line
Sat Apr 22 00:09:41 2017 OpenSSL: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Sat Apr 22 00:09:41 2017 Cannot load inline certificate file
Sat Apr 22 00:09:41 2017 Exiting due to fatal error
作为编程/UNIX/Raspberry 的新手,任何人都可以帮我弄清楚这是什么意思吗?
答案1
看起来它无法读取您使用 easy-rsa 创建的证书文件,您在 /etc/openvpn/server.conf 中设置了路径或应该具有该文件。这也许是它认为符合的。检查以使该文件中的路径指向正确的证书文件。如果您的证书路径无效,那么读取证书文件的用户权限可能会出现问题。