23.11.2014 Views

CRIPTOGRAFIA - FESP

CRIPTOGRAFIA - FESP

CRIPTOGRAFIA - FESP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Now, start the server:<br />

service openvpn start<br />

Run : ifconfig<br />

You can see a new interface tun0 : this is the vpn interface<br />

Note on pkcs#11: (you can skip this part if not interested and go to the next<br />

part: Configure Shorewall, or go back to the Table of contents).<br />

With the Beta 2.1 of OpenVPN and on a cooker or Mandriva 2007 you can<br />

generate pkcs11 certificates.<br />

2006 can work with these certitficates, but not generate them.<br />

To generate pkcs#11 certificates on a cooker or Mandriva 2007 use one of the<br />

apropriate openvpn-2.1 rpms here:<br />

RPMs<br />

And then do as follows:<br />

urpmi opensc engine_pkcs11 openct openvpn-2.1_beta14-1.i586.rpm<br />

service openct start<br />

Then :<br />

cp -r /usr/share/doc/openvpn-2.1_beta14/easy-rsa/ /etc/openvpn/<br />

cd /etc/openvpn/easy-rsa/2.0/<br />

In /etc/openvpn/easy-rsa/2.0/ edit openssl.cnf and modify this section:<br />

[ engine_section ]<br />

#<br />

# If you are using PKCS#11<br />

# Install engine_pkcs11 of opensc (www.opensc.org)<br />

# And uncomment the following<br />

# verify that dynamic_path points to the correct location<br />

#<br />

#pkcs11 = pkcs11_section<br />

[ pkcs11_section ]<br />

engine_id = pkcs11<br />

dynamic_path = /usr/lib/engines/engine_pkcs11.so<br />

MODULE_PATH = $ENV::PKCS11_MODULE_PATH<br />

PIN = $ENV::PKCS11_PIN<br />

init = 0<br />

to make it like this:<br />

[ engine_section ]<br />

#<br />

# If you are using PKCS#11<br />

# Install engine_pkcs11 of opensc (www.opensc.org)<br />

# And uncomment the following<br />

# verify that dynamic_path points to the correct location<br />

#<br />

pkcs11 = pkcs11_section

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!