07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

export KEY_DIR="$EASY_RSA/keys"<br />

echo NOTE: If you run ./clean-all, I will be doing a rm -rf on $KEY_DIR<br />

export KEY_SIZE=1024<br />

export KEY_EX<strong>PI</strong>RE=3650<br />

export KEY_COUNTRY="FR"<br />

export KEY_PROVINCE="Loire"<br />

export KEY_CITY="Saint-Étienne"<br />

export KEY_ORG="Falcot Corp"<br />

export KEY_EMAIL="admin@falcot.com"<br />

$ . ./vars<br />

NOTE: If you run ./clean-all, I will be doing a rm -rf on /home/rhertzog/pki-<br />

➥ falcot/keys<br />

$ ./clean-all<br />

The next step is the creation of the CA's key pair itself (the two parts of the key pair will be<br />

stored under keys/ca.crt and keys/ca.key during this step):<br />

$ ./build-ca<br />

Generating a 1024 bit RSA private key<br />

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

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

writing new private key to 'ca.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) [Falcot Corp CA]:<br />

Name []:<br />

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

The certificate for the VPN server can now be created, as well as the Diffie-Hellman parameters<br />

required for the server side of an SSL/TLS connection. The VPN server is identified by its DNS<br />

name vpn.falcot.com; this name is re-used for the generated key files (keys/vpn.falcot.com.<br />

226 The Debian Administrator's Handbook

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

Saved successfully!

Ooh no, something went wrong!