OpenVPN虚拟专用网安装与部署Word文件下载.docx
- 文档编号:15765669
- 上传时间:2022-11-16
- 格式:DOCX
- 页数:28
- 大小:825.36KB
OpenVPN虚拟专用网安装与部署Word文件下载.docx
《OpenVPN虚拟专用网安装与部署Word文件下载.docx》由会员分享,可在线阅读,更多相关《OpenVPN虚拟专用网安装与部署Word文件下载.docx(28页珍藏版)》请在冰豆网上搜索。
1.初始化配置:
(一)修改easy-rsa目录下的vars.bat.Sample的内容(最好用写字板打开,以免记事本打开会破坏文档格式),并将其改名为vars.bat
,如下:
set
KEY_COUNTRY=CN
KEY_PROVINCE=BJ
KEY_CITY=BeiJing
KEY_ORG=cdtsm
KEY_EMAIL=sunzhouyi@
(二)把easy-rsa下的f.sample改成f。
然后打开命令行(开始-运行-输入cmd)
C:
\Documents
and
Settings\ThinkPad>
cd
"
Files\OpenVPN\easy-rsa"
Files\OpenVPN\easy-rsa>
vars
--此步骤必须的
clean-all
系统找不到指定的文件。
已复制
1
个文件。
3.生成根CA:
(一)C:
vars
build-ca
Loading
'
screen'
into
random
state
-
done
Generating
a
1024
bit
RSA
key
...............................++++++
.......++++++
writing
new
key
to
keys\ca.Key'
-----
You
are
about
be
asked
enter
information
that
will
incorporated
your
certificate
request.
What
you
is
what
called
Distinguished
Name
or
DN.
There
quite
few
fields
but
can
leave
some
blank
For
there
default
value,
If
.'
the
field
left
blank.
Country
(2
letter
code)
[US]:
CN
State
Province
(full
name)
[CA]:
BJ
Locality
(eg,
city)
[SanFrancisco]:
BeiJing
Organization
company)
[OpenVPN]:
cdtsm
Organizational
Unit
section)
[]:
Common
name
server'
s
hostname)
Address
[mail@host.domain]:
sunzhouyi@
4.生成dh1024.pem文件,server使用TLS必须使用的一个文件。
build-dh
DH
parameters,
long
safe
prime,
generator
2
This
going
take
time
.....................................................................+..........
............................................+...............................+...
................+.....+.................+.......................+...............
...........+.............................................+......................
....................+...........................................+...............
...........................+....................................................
.+...................................++*++*++*
5.下面生成服务器端证书、客户端证书和TA证书:
首先生成server使用的证书:
build-key-server
CdtsmServer
............++++++
keys\CdtsmServer.key'
Please
following
extra'
attributes
sent
with
request
A
challenge
password
123456
--此处可以为空等安装部署完后可以在修改
An
optional
company
Using
configuration
from
f
Check
request
matches
signature
Signature
ok
The
Subject'
as
follows
countryName
:
PRINTABLE:
CN'
stateOrProvinceName
BJ'
localityName
BeiJing'
organizationName
cdtsm'
organizationalUnitName:
commonName
emailAddress
IA5STRING:
sunzhouyi@'
Certificate
certified
until
Jul
25
04:
11:
08
2020
GMT
(3650
days)
Sign
certificate?
[y/n]:
y
out
of
requests
certified,
commit?
[y/n]y
Write
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- OpenVPN 虚拟 专用网 安装 部署