You can use two methods to create the respective certificates and keys:
• Use the YaST CA module (see
Chapter 17, Managing X.509 Certification
(page 197)), or
• Use the scripts included with the
openvpn
package.
Generating Certificates with easy-ca
The easy-ca utilities use the configuration file
openssl.cnf
stored under
/usr/
share/openvpn/easy-ca
. In most cases you can leave this file as it is.
Procedure 16.1
Generate the Master CA And Key
1
Open a shell and become
root
.
2
Change the directory to
/usr/share/openvpn/easy-ca
.
3
Edit the default values in the file
vars
. Change the variables
KEY_COUNTRY
,
KEY_PROVINCE
,
KEY_CITY
,
KEY_ORG
, and
KEY_EMAIL
.
4
Initialize the PKI:
source ./vars && ./clean-all && ./build-ca
5
Enter the respective data that is asked by the
build-ca
script. Usually you can
take the defaults that you have set in
Step 3
(page 188). The only parameter that
is not set is the
Common Name
.
After this procedure, the master certificate and key is saved as
/usr/share/
openvpn/easy-ca/keys/ca.*
.
Procedure 16.2
Generate The Private Server Key
1
Make sure the directory is
/usr/share/openvpn/easy-ca
.
2
Run the following script:
./build-key-server server
The argument (here:
server
) is used for the private key filename.
188
Security Guide
Содержание LINUX ENTERPRISE DESKTOP 11
Страница 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Страница 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Страница 10: ......
Страница 29: ...Part I Authentication...
Страница 30: ......
Страница 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Страница 126: ......
Страница 127: ...Part II Local Security...
Страница 128: ......
Страница 158: ......
Страница 173: ...Part III Network Security...
Страница 174: ......
Страница 194: ......
Страница 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Страница 210: ......
Страница 228: ......
Страница 229: ...Part IV Confining Privileges with Novell AppArmor...
Страница 230: ......
Страница 274: ......
Страница 300: ......
Страница 328: ......
Страница 340: ......
Страница 342: ......
Страница 386: ......
Страница 387: ...Part V The Linux Audit Framework...
Страница 388: ......