add: make inclusion of leaf certificate optional
[gigi.git] / src / org / cacert / gigi / pages / account / certs / CertificateDisplay.templ
1 <table>
2 <? if($support) {?>
3
4   <tr>
5     <th colspan="2"><?=_Support Info?>:</th>
6   </tr>
7
8   <tr>
9     <td><?=$type?>:</td>
10     <td><a href="<?=$link?>"><?=$name?></a></td>
11   </tr>
12 <? } ?>
13
14
15   <tr>
16     <th colspan="2"><?=_X.509 Info?>:</th>
17   </tr>
18
19   <tr>
20     <td><?=_Profile?>:</td>
21     <td><?=$profile?></td>
22   </tr
23
24   <tr>
25     <td><?=_Serial Number?>:</td>
26     <td><?=$serial?></td>
27   </tr
28
29 <? if($support) {?>
30   <tr>
31     <td><?=_Trustchain?>:</td>
32     <td>
33     <? foreach($trustchain) { ?>
34       <?=_issued by?> <code><?=$name?></code>
35     <? } ?>
36     </td>
37   </tr>
38 <? } else { ?>
39   <tr>
40     <td valign="top"><?=_Certificate and Chain?>:</td>
41     <td>
42         <a href='<?=$serial?>.crt'><?=_PEM encoded Certificate?></a>
43         <? foreach($trustchain) { ?>
44             <?=_issued by?> <a href='<?=$link?>'><?=$name?></a>
45         <? } ?><br/>
46         <a href='<?=$serial?>.crt?chain'><?=_PEM encoded Certificate Chain?></a><br/>
47         <a href='<?=$serial?>.crt?chain&noAnchor'><?=_PEM encoded Certificate Chain (Excluding Anchor)?></a><br/>
48         <a href='<?=$serial?>.crt?chain&noLeaf'><?=_PEM encoded Certificate Chain (Excluding Leaf)?></a><br/>
49         <a href='<?=$serial?>.cer'><?=_DER encoded Certificate?></a><br/>
50         <a href='<?=$serial?>.cer?install&chain'><?=_Install into browser.?></a><br/>
51         <a href='<?=$serial?>.cer?install'><?=_Install into browser. (Chrome)?></a>. <?=_Please ensure that the intermediate certificates listed above are installed prior to installing the certificate.?><br/>
52     </td>
53   </tr>
54 <? } ?>
55
56   <tr>
57     <th colspan="2"><?=_Validity?>:</th>
58   </tr>
59
60   <tr>
61     <td><?=_Status?>:</td>
62     <td><?=$status?></td>
63   </tr>
64
65   <tr>
66     <td><?=_Issue Date?>:</td>
67     <td><?=$issued?></td>
68   </tr>
69
70   <tr>
71     <td><?=_Expire Date?>:</td>
72     <td><?=$expire?></td>
73   </tr>
74
75   <tr>
76     <td><?=_Revocation Date?>:</td>
77     <td><?=$revoked?></td>
78   </tr>
79
80   <tr>
81     <th colspan="2"><?=_Certificate Info?>:</th>
82   </tr>
83
84   <tr>
85     <td><?=_Fingerprint?>:</td>
86     <td><?=$fingerprint?></td>
87   </tr>
88
89   <tr>
90     <td valign="top"><?=_Certificate (PEM)?>:</td>
91     <td><pre><?=$cert?></pre></td>
92   </tr>
93
94   <tr>
95     <th colspan="2"><?=_Certificate Details?>:</th>
96   </tr>
97
98   <tr>
99     <td><?=_Login enabled?>:</td>
100     <td><?=$login?></td>
101   </tr>
102
103   <tr>
104     <td><?=_Digest?>:</td>
105     <td><?=$digest?></td>
106   </tr>
107
108   <tr>
109     <td><?=_Distinguished Name (DN)?>:</td>
110     <td><?=$DN?></td>
111   </tr>
112
113   <tr>
114     <td><?=_Subject Alternative Names (SAN)?>:</td>
115     <td>
116     <? foreach($san) { ?>
117       <?=$entry?>
118     <? } ?>
119     </td>
120   </tr>
121
122 </table>
123 <? if($revokeForm) {?>
124 <?=$revokeForm?>
125 <? } ?>