從外部訪問公司內部服務器
使用命令:
./clean-all 刪除keys目錄下的文件
./build-ca 製作ca證書
./build-key-server server
---------
使用默認配置,最後兩次需要選擇兩次y
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
---------
./build-dh
服務器端證書生成完畢
---------
./build-key MedPioneer
---------
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
--------
ps -aux | grep openvpn
ss -tnlp | grep 1194
service openvpn start
service openvpn stop
使用密碼,修改配置文件:
在客戶端配置中
ca ca.crt
auth-user-pass
auth-nocache