07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

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.

Data Base Updated<br />

$ ./build-dh<br />

Generating DH parameters, 1024 bit long safe prime, generator 2<br />

This is going to take a long time<br />

..............+.......+.................................++*++*++*<br />

The following step creates certificates for the VPN clients; one certificate is required for each<br />

computer or person allowed to use the VPN:<br />

$ ./build-key JoeSmith<br />

Generating a 1024 bit RSA private key<br />

................++++++<br />

.............................++++++<br />

writing new private key to 'JoeSmith.key'<br />

-----<br />

You are about to be asked to enter information that will be incorporated<br />

into your certificate request.<br />

What you are about to enter is what is called a Distinguished Name or a DN.<br />

There are quite a few fields but you can leave some blank<br />

For some fields there will be a default value,<br />

If you enter '.', the field will be left blank.<br />

-----<br />

Country Name (2 letter code) [FR]:<br />

State or Province Name (full name) [Loire]:<br />

Locality Name (eg, city) [Saint-Étienne]:<br />

Organization Name (eg, company) [Falcot Corp]:<br />

Organizational Unit Name (eg, section) []:<br />

Common Name (eg, your name or your server's hostname) [JoeSmith]:Joe Smith<br />

Name []:<br />

Email Address [admin@falcot.com]:joe@falcot.com<br />

[…]<br />

Now all certificates have been created, they need to be copied where appropriate: the root<br />

certificate's public key (keys/ca.crt) will be stored on all machines (both server and clients)<br />

as /etc/ssl/certs/Falcot_CA.crt. The server's certificate is installed only on the server<br />

(keys/vpn.falcot.com.crt goes to /etc/ssl/vpn.falcot.com.crt, and keys/vpn.falcot.<br />

com.key goes to /etc/ssl/private/vpn.falcot.com.key with restricted permissions so that<br />

only the administrator can read it), with the corresponding Diffie-Hellman parameters (keys/<br />

dh1024.pem) installed to /etc/openvpn/dh1024.pem. Client certificates are installed on the<br />

corresponding VPN client in a similar fashion.<br />

228 The Debian Administrator's Handbook

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

Saved successfully!

Ooh no, something went wrong!