First commit of tag changes. bug-1444
[cacert-devel.git] / pages / account / 10.php
1 <?php /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
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.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 GNU General Public License for more details.
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 include_once("../includes/shutdown.php");
19 ?>
20 <h3><?php echo _("CAcert Certificate Acceptable Use Policy")?></h3>
21 <p><?php echo _("Once you decide to subscribe for an SSL Server Certificate you will need to complete this agreement. Please read it carefully. Your Certificate Request can only be processed with your acceptance and understanding of this agreement.")?></p>
23 <p><?php echo _("I hereby represent that I am fully authorized by the owner of the information contained in the CSR sent to CAcert Inc. to apply for an Digital Certificate for secure and authenticated electronic transactions. I understand that a digital certificate serves to identify the Subscriber for the purposes of electronic communication and that the management of the private keys associated with such certificates is the responsibility of the subscriber's technical staff and/or contractors.")?></p>
25 <p><?php echo _("CAcert Inc.'s public certification services are governed by a CPS as amended from time to time which is incorporated into this Agreement by reference. The Subscriber will use the SSL Server Certificate in accordance with CAcert Inc.'s CPS and supporting documentation published at")?> <a href=""></a></p>
27 <p><?php echo _("If the Subscriber's name and/or domain name registration change the subscriber will immediately inform CAcert Inc. who shall revoke the digital certificate. When the Digital Certificate expires or is revoked the company will permanently remove the certificate from the server on which it is installed and will not use it for any purpose thereafter. The person responsible for key management and security is fully authorized to install and utilize the certificate to represent this organization's electronic presence.")?></p>
29 <p><b>*** <?php echo _("Please note: All information on your certificate will be removed except the CommonName and SubjectAltName field, this is because it's an automated service and cannot automatically verify other details on your certificates are valid or not.")?> ***</b></p>
30 <p><?php echo _("If you are a valid organisation and would like the organisation name in the certificates you can apply for an organisation assurance. Contact us via for more information.")?></p>
32 <form method="post" action="account.php">
33 <p><label for="description"><?php echo _("Optional comment, only used in the certificate overview")?></label><br />
34 <input type="text" id="description" name="description" maxlength="80" size="80" />
35 </p>
36 <p><label for="CSR"><?php echo _("Paste your CSR (Certificate Signing Request) below...")?></label><br />
37 <textarea id="CSR" name="CSR" cols="80" rows="15"></textarea>
38 </p>
40 <fieldset>
41 <legend>
42 <input type="checkbox" id="expertbox" onchange="showExpert(this.checked)" style="display:none" />
43 <label for="expertbox"><?php echo _("Advanced Options")?></label>
44 </legend>
45 <div id="advanced_options">
47 <?php if($_SESSION['profile']['points'] >= 50) { ?>
48 <ul class="no_indent">
49 <li>
50 <input type="radio" id="root1" name="rootcert" value="1" />
51 <label for="root1"><?php echo _("Sign by class 1 root certificate")?></label>
52 </li>
53 <li>
54 <input type="radio" id="root2" name="rootcert" value="2" checked="checked" />
55 <label for="root2"><?php echo _("Sign by class 3 root certificate")?></label>
56 </li>
57 </ul>
58 <p><?php echo _("Please note: The class 3 root certificate needs to be setup in your webserver as a chained certificate, while slightly more complicated to setup, this root certificate is more likely to be trusted by more people.")?></p>
59 <?php } ?>
61 <p class="attach_ul"><?php echo _("Hash algorithm used when signing the certificate:")?></p>
62 <ul class="no_indent">
63 <?php foreach (HashAlgorithms::getInfo() as $algorithm => $display_info) {
64 ?>
65 <li>
66 <input type="radio" id="hash_alg_<?php echo $algorithm?>" name="hash_alg" value="<?php echo $algorithm?>" <?php echo (HashAlgorithms::$default === $algorithm)?'checked="checked"':''?> />
67 <label for="hash_alg_<?php echo $algorithm?>"><?php echo $display_info['name']?><?php echo $display_info['info']?' - '.$display_info['info']:''?></label>
68 </li>
69 <?php }
70 ?>
71 </ul>
73 </div>
74 </fieldset>
76 <p><input type="checkbox" id="CCA" name="CCA" /> <label for="CCA"><strong><?php echo sprintf(_("I accept the CAcert Community Agreement (%s)."),"<a href='/policy/CAcertCommunityAgreement.html'>CCA</a>")?></strong><br />
77 <?php echo _("Please note: You need to accept the CCA to proceed.")?></label></p>
78 <input type="submit" name="process" value="<?php echo _("Submit")?>" />
79 <input type="hidden" name="oldid" value="<?php echo $id?>" />
80 </form>
83 <script language="javascript">
84 function showExpert(a)
85 {
86 var options=document.getElementById("advanced_options");
87 = (a) ? "" : "none";
89 var checkbox=document.getElementById("expertbox");
90 = "";
91 }
92 showExpert(false);
93 </script>