导航

easy-rsa 不同版本克隆

Posted on 2019-12-25 09:46  展春秋  阅读(723)  评论(0编辑  收藏  举报

1、克隆easy-rsa 并切换到2.0版本的分支

yum install -y git
git clone https://github.com/OpenVPN/easy-rsa.git
cd easy-rsa
git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/release/1.x
  remotes/origin/release/2.x
  remotes/origin/v3.0.4
  remotes/origin/v3.0.5
  remotes/origin/v3.0.6
git checkout -b v2.0 origin/release/2.x
git branch -a
  master
* v2.0
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/release/1.x
  remotes/origin/release/2.x
  remotes/origin/v3.0.4
  remotes/origin/v3.0.5
  remotes/origin/v3.0.6

 ls easy-rsa

 2.0 Windows 

2.0即为需要使用的easy-rsa 2.-版本

2、克隆easy-rsa 并切换到3.0.6版本的分支

yum install -y git
git clone https://github.com/OpenVPN/easy-rsa.git
cd rasy-rsa
git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/release/1.x
  remotes/origin/release/2.x
  remotes/origin/v3.0.4
  remotes/origin/v3.0.5
  remotes/origin/v3.0.6

git checkout -b v3.0.6 origin/v3.0.6
git branch -a
  master
  v2.0
* v3.0.6
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/release/1.x
  remotes/origin/release/2.x
  remotes/origin/v3.0.4
  remotes/origin/v3.0.5
  remotes/origin/v3.0.6
ls easyrsa3
easyrsa  openssl-easyrsa.cnf  vars.example  x509-types 

 

其中easyrsa3 文件夹中为既要使用的3.0.6的相关版本文件