openvpn之EasyRSA配置篇
cd EasyRSA-2.2.2
vi vars #加粗的表示是我們需要修改的,其它的保持默認就可以 export EASY_RSA="`pwd`" export OPENSSL="openssl" export PKCS11TOOL="pkcs11-tool" export GREP="grep" export KEY_CONFIG=`$EASY_RSA/whichopensslcnf $EASY_RSA` export KEY_DIR="$EASY_RSA/keys" echo NOTE: If you run ./clean-all, I will be doing a rm-rf on $KEY_DIR export PKCS11_MODULE_PATH="dummy" export PKCS11_PIN="dummy" export KEY_SIZE=2048 export CA_EXPIRE=3650 export KEY_EXPIRE=3650 export KEY_COUNTRY="CN" export KEY_PROVINCE="GD" export KEY_CITY="Shenzhen" export KEY_ORG="xxx" #你的公司 export KEY_EMAIL="[email protected]
source vars
./build-ca ./build-key-server server ./build-key-pass chenzejin ./build-dh 完成EasyRSA key的生成。
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
openvpn之EasyRSA配置篇