source code taken from cacert-20090625.tar.bz2
[cacert.git] / cacert / pages / help / 4.php
1 <? /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */ ?>
18 <p><?=_("Firstly you will need to run the following command, preferably in secured directory no one else can access, however protecting your private keys is beyond the scope of this document.")?></p>
19 <p># openssl req -nodes -new -keyout private.key -out server.csr</p>
20 <p><?=_("Then the system will try to generate some very random numbers to get a secure key.")?></p>
21 <p><?=_("Generating a 1024 bit RSA private key")?><br>
22 ...++++++<br>
23 ....++++++<br>
24 <?=_("writing new private key to 'private.key'")?></p>
25 <p><?=_("You will then be asked to enter information about your company into the certificate. Below is a valid example:")?></p>
26 <p><?=_("Country Name (2 letter code) [AU]:")?>AU<br>
27 <?=_("State or Province Name (full name) [NSW]:")?>NSW<br>
28 <?=_("Locality Name (eg, city) [Sydney]:")?>Sydney<br>
29 <?=_("Organization Name (eg, company) [XYZ Corp]:")?>CAcert Inc.<br>
30 <?=_("Organizational Unit Name (eg, section) [Server Administration]:.")?><br>
31 <?=_("Common Name (eg, YOUR name) []:")?>www.cacert.org<br>
32 <?=_("Email Address")?> []:no-returns@cacert.org</p>
33 <p><?=_("Finally you will be asked information about 'extra' attribute, you simply hit enter to both these questions.")?></p>
34 <p><?=_("Next step is that you submit the contents of server.csr to the CAcert website, it should look *EXACTLY* like the following example otherwise the server may reject your request because it appears to be invalid.")?></p>
35 <p>-----BEGIN CERTIFICATE REQUEST-----<br>
36 MIIBezCB5QIBADA8MRcwFQYDVQQDEw53d3cuY2FjZXJ0Lm9yZzEhMB8GCSqGSIb3<br>
37 DQEJARYSc3VwcG9ydEBjYWNlcnQub3JnMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB<br>
38 iQKBgQDQd1+ut4TJLWZf5A9r3D17Kob+CNwz/jfCOYrH0P6q1uw4jfSyrWUeSaVc<br>
39 59Xjpov8gRctlAuWM9KavkLSF6vcNdDEbvUYnL/+ixdmVE9tlXuSFEGz0GAF5faf<br>
40 QZe30wk+2hnC6P+rwclypOhkTXtWgvSHPZg9Cos8xqDyv589QwIDAQABoAAwDQYJ<br>
41 KoZIhvcNAQEEBQADgYEAJruzBZr4inqaeidn1m2q47lXZUWjgsrp3k3bFJ/HCb3S<br>
42 2SgVqHFrOisItrr7H0Dw2EcPhIrRokRdjIAwwlxG9v21eFaksZUiaP5Yrmf89Njk<br>
43 HV+MZXxbC71NIKrnZsDhHibZslICh/XjdPP7zfKMlHuaaz1oVAmu9BlsS6ZXkVA=<br>
44 -----END CERTIFICATE REQUEST----- </p>
45 <p><?=_("Once you've submitted it the system will process your request and send an email back to you containing your server certificate.")?></p>