]> WPIA git - gigi.git/blob - src/org/cacert/gigi/output/ClientCSRGenerateIE.templ
Draft for client cert gen
[gigi.git] / src / org / cacert / gigi / output / ClientCSRGenerateIE.templ
1         <noscript>
2                 <p><?=_You have to enable JavaScript to generate certificates in the browser.?></p>
3                 <p><?=_If you don't want to do that for any reason, you can use manually created certificate requests instead.?></p>
4         </noscript>
5
6         <div id="noActiveX" style="color:red">
7                 <p><?=_Could not initialize ActiveX object required for certificate generation.?></p>
8                 <p><?=_You have to enable ActiveX for this to work. On Windows Vista, Windows 7 and later versions you have to add this website to the list of trusted sites in the internet settings.?></p>
9                 <p><?=s,$normalhost,$securehost,Go to "Extras -> Internet Options -> Security -> Trusted Websites",
10  click on "Custom Level", set "ActiveX control elements that are not marked as safe initialized on start
11  in scripts" to "Confirm" and click "OK". Now click "Sites", add "%s" and "%s" to your list of trusted
12  sites and make the changes come into effect by clicking "Close" and "OK".?></p>
13         </div>
14
15         <form method="post" style="display:none" action="account.php"
16                         id="CertReqForm">
17                 <input type="hidden" id="CSR" name="CSR" />
18                 <input type="hidden" name="keytype" value="MS" />
19
20                 <p><?=_Security level?>:
21                         <select id="SecurityLevel">
22                                 <option value="high" selected="selected"><?=_High?></option>
23                                 <option value="medium"><?=_Medium?></option>
24                                 <option value="custom"><?=_Custom?>&hellip;</option>
25                         </select>
26                 </p>
27
28                 <fieldset id="customSettings" style="display:none">
29                         <legend><?=_Custom Parameters?></legend>
30
31                         <p><?=_Cryptography Provider?>:
32                                 <select id="CspProvider"></select>
33                         </p>
34                         <p><?=_Algorithm?>: <select id="algorithm"></select></p>
35                         <p><?=_Keysize?>:
36                                 <input id="keySize" type="number" />
37                                 <?=_Minimum Size?>: <span id="keySizeMin"></span>,
38                                 <?=_Maximum Size?>: <span id="keySizeMax"></span>,
39                                 <?=_Step?>: <span id="keySizeStep"></span></p>
40                         <p style="color:red"><?=s,$minsize,Please note that RSA key sizes smaller than %d bit will not be accepted by CAcert?>
41                         </p>
42                 </fieldset>
43
44                 <p><input type="submit" id="GenReq" name="GenReq" value="<?=_Create Certificate?>" /></p>
45                 <p id="generatingKeyNotice" style="display:none">
46                         <?=_Generating your key. Please wait?>&hellip;</p>
47         </form>
48
49         <!-- Error messages used in the JavaScript. Defined here so they can be
50         translated without passing the JavaScript code through PHP -->
51         <p id="createRequestErrorChooseAlgorithm" style="display:none">
52                 <?=_Could not generate certificate request. Probably you need to choose a different algorithm.?>
53         </p>
54         <p id="createRequestErrorConfirmDialogue" style="display:none">
55                 <?=_Could not generate certificate request. Please confirm the dialogue if you are asked if you want to generate the key.?>
56         </p>
57         <p id="createRequestErrorConnectDevice" style="display:none">
58                 <?=_Could not generate certificate request. Please make sure the cryptography device (e.g. the smartcard) is connected.?>
59         </p>
60         <p id="createRequestError" style="display:none">
61                 <?=_Could not generate certificate request.?>
62         </p>
63         <p id="invalidKeySizeError" style="display:none">
64                 <?=_You have specified an invalid key size?>
65         </p>
66         <p id="unsupportedPlatformError" style="display:none">
67                 <?=_Could not initialize the cryptographic module for your platform. Currently we support Microsoft Windows XP, Vista and 7. If you're using one of these platforms and see this error message anyway you might have to enable ActiveX as described in the red explanation text and accept loading of the module.?>
68         </p>
69
70         <script type="text/javascript" src="<?=$statichost?>/keygenIE.js"></script>