\u4e0a\u56fe\u4e2d\u53ef\u4ee5\u770b\u51fa\u6709\u53ef\u80fd\u7b2c\u4e00\u6b21\u6211\u5c1d\u8bd5\u7f16\u8bd1\u5b89\u88c5\u65f6\u6ca1\u6709\u5c06\u4f9d\u8d56\u6240\u9700\u7684lz4\u5305\u88c5\u4e0a\u4f1a\u6709\u70b9\u95ee \u9898\u3002 \u53e6\u5916\u5b89\u88c5\u4e0aepel\u4ed3\u5e93\u540e\uff0c\u83b7\u53d6\u5230\u7684openvpn\u5305\u4e5f\u6bd4\u8f83\u65b0\u5450\u3002 <\/p><\/blockquote>\n\n\n
\u5b89\u88c5openvpn\u6700\u65b0\u7684easy-rsa <\/strong><\/p>\n\n\n \u8be5\u5305\u7528\u6765\u5236\u4f5cca\u8bc1\u4e66\uff0c\u670d\u52a1\u7aef\u8bc1\u4e66\uff0c\u5ba2\u6237\u7aef\u8bc1\u4e66\u3002
\u6700\u65b0\u7684\u4e3aeasy-rsa3\u3002 <\/p><\/blockquote>\n\n\n
wget https:\/\/github.com\/OpenVPN\/easy-rsa\/archive\/master.zip\nunzip master.zip\n\u5c06\u89e3\u538b\u5f97\u5230\u7684\u6587\u4ef6\u5939easy-rsa-master\u91cd\u547d\u540d\u4e3aeasy-rsa\nmv easy-rsa-mater\/ easy-rsa\/\n\u7136\u540e\u5c06easy-ras\u6587\u4ef6\u5939\u590d\u5236\u5230\/etc\/openvpn\/\u76ee\u5f55\u4e0b\ncp -R easy-rsa\/ \/etc\/openvpn\/<\/code><\/pre>\n\n\n\u7b2c\u4e8c\u6b65\u3001\u7f16\u8f91vars\u6587\u4ef6\uff0c\u6839\u636e\u81ea\u5df1\u73af\u5883\u914d\u7f6e<\/h3>\n\n\n- \u8fdb\u5165
\/etc\/openvpn\/easy-rsa\/easyrsa3<\/code>\u76ee\u5f55
cd \/etc\/openvpn\/easy-rsa\/easyrsa3\/<\/code><\/li>- \u590d\u5236
vars.example<\/code>\u4e3avars
cp vars.example vars<\/code><\/li><\/ul>\n\n\n- \u4fee\u6539\u4e0b\u9762\u5b57\u6bb5
- \u547d\u4ee4\uff1avim vars\uff0c\u7136\u540e\u4fee\u6539\uff0c\u6700\u540ewq\u4fdd\u5b58<\/li><\/ul>
\/\/\u4ee5\u4e0b\u5b57\u6bb5\u6839\u636e\u81ea\u5df1\u5b9e\u9645\u60c5\u51b5\u66f4\u6539\uff0c\u8fd9\u4e9b\u4fe1\u606f\u524d\u9762\u662f\u6709#\u6ce8\u91ca\u7684\uff0c\u53bb\u6389#\u53f7\n\nset_var EASYRSA_REQ_COUNTRY \u201cCN\u201d #\u56fd\u5bb6\nset_var EASYRSA_REQ_PROVINCE \u201cGuangDong\u201d #\u7701\u4efd\nset_var EASYRSA_REQ_CITY \u201cGuangZhou\u201d #\u57ce\u5e02\nset_var EASYRSA_REQ_ORG \u201ctielemao\u201d #\u975e\u76c8\u5229\u7ec4\u7ec7\uff0c\u6b64\u5904\u53ef\u586b\u516c\u53f8\u4e4b\u7c7b\nset_var EASYRSA_REQ_EMAIL \u201cwwz@tielemao.com\u201d #\u90ae\u7bb1\u5730\u5740\nset_var EASYRSA_REQ_OU \u201cMy OpenVPN\u201d #\u7ec4\u7ec7\u5355\u5143\n\n<\/code><\/li><\/ul>\n\n\n\u8fd9\u4e2avars\u6587\u4ef6\u4f3c\u4e4e\u4e5f\u4e0d\u662f\u5f88\u91cd\u8981\uff0c\u4e0d\u8fc7\u586b\u4e0a\u4e00\u4e9b\u4fe1\u606f\u4e5f\u65e0\u4e0d\u53ef\uff1f<\/p><\/blockquote>\n\n\n
\u7b2c\u4e09\u6b65\u3001\u521b\u5efa\u670d\u52a1\u7aef\u8bc1\u4e66\u53cakey<\/h3>\n\n\n- \u8fdb\u5165
\/etc\/openvpn\/easy-rsa\/easyrsa3\/<\/code>\u76ee\u5f55\u521d\u59cb\u5316.\/easyrsa init-pki<\/code><\/li>[root@yunwei_OpenVPN easyrsa3]# .\/easyrsa init-pki<\/code><\/li>- <\/li><\/ul>\n\n\n
Note: using Easy-RSA configuration from: .\/vars\n\ninit-pki complete; you may now create a CA or requests.\nYour newly created PKI dir is: \/etc\/openvpn\/easy-rsa\/easyrsa3\/pki\n<\/code><\/li>- \u521b\u5efa\u6839\u8bc1\u4e66
.\/easyrsa build-ca<\/code>
\u5982\u4e0b\u56fe\uff1a<\/li><\/ul>\n\n\n