一直執行好好的 OpenVPN Server 突然無法啟動,出現錯誤的訊息。
# systemctl start openvpn@server.service
Job for openvpn@server.service failed because the control process exited with error code. See “systemctl status openvpn@server.service” and “journalctl -xe” for details.
# journalctl -xe | grep Error
Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/server.srvice.conf
仔細查看設定檔 /etc/openvpn/server.conf 似乎沒有什麼特別[@more@]使用 OpenVPN 本身程式進行檢查
# openvpn –config /etc/openvpn/server.conf
Options error: –dh fails with ‘dh2048.pem’: No such file or directory
Options error: –ca fails with ‘ca.crt’: No such file or directory
Options error: –cert fails with ‘server.crt’: No such file or directory
Options error: –key fails with ‘server.key’: No such file or directory
Options error: –tls-auth fails with ‘ta.key’: No such file or directory
Options error: Please correct these errors.
Use –help for more information.
看起來是憑證和金鑰的位置找不到,重新指定後就正常了!