快速业务通道

基于Linux的 OpenVPN网络之网络架构应用实例(一)

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-14
..................................................................................... .......... ......................... ....................................................................................... ................. .............................. ........ .............................. ......................................................................................................................................................... .................... ...... ............. ......................................................... ...... ....... ......................... ......................................................................................... ......................................... ............................ ............................ .......................................... ............................. * * *

6) 创建 GW1 主服务器端密钥

执行“./build-key-server”脚本可以建立VPN 服务端密钥文件,根据提示设置好Common Name(gw1.benet.com),依次按“y”键签署(Sign)及提交(Commit).

[root@gw1 easy-rsa]# ./build-key-server gw1

Generating a 1024 bit RSA private key

.............................

....................................

writing new private key to ''gw1.key''

-----

You are about to be asked to enter information that will be incorporated

into your certificate request.

What you are about to enter is what is called a Distinguished Name or a DN.

There are quite a few fields but you can leave some blank

For some fields there will be a default value,

If you enter ''.'', the field will be left blank.

-----

Country Name (2 letter code) [CN]:

State or Province Name (full name) [BeiJing]:

Locality Name (eg, city) [BISHKEK]:

Organization Name (eg, company) [BENET.Inc]:

Organizational Unit Name (eg, section) []:

Common Name (eg, your name or your server''s hostname) []:gw1.benet.com

Email Address [vpnadm@benet.com]:

Please enter the following ''extra'' attributes

to be sent with your certificate request

A challenge password []:

An optional company name []:

Using configuration from /soft_dir/openvpn-2.0.9/easy-rsa/openssl.cnf

Check that the request matches the signature

Signature ok

The Subject''s Distinguished Name is as follows

countryName :PRINTABLE:''CN''

stateOrProvinceName :PRINTABLE:''BeiJing''

localityName :PRINTABLE:''BISHKEK''

organizationName :PRINTABLE:''BENET.Inc''

commonName :PRINTABLE:''gw1.benet.com''

emailAddress :IA5STRING:''vpnadm@benet.com''

Certificate is to be certified until Jul 12 02:42:17 2020 GMT (3650 days)

Sign the certificate? [y/n]:y

1 out of 1 certificate requests certified, commit? [y/n]y

Write out database with 1 new entries

Data Base Updated

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号