This file is indexed.

/usr/share/zentyal/templates/ca/formRenew.mas is in zentyal-ca 2.3.6+quantal1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<%args>
  $metaDataCert # A hash reference to the list certificate returned element
  $passRequired => '' # Set if the CA is password aware
</%args>
<%init>
  use EBox::Gettext;
  my @renewTable = (
		    [ name  => 'commonName', input => 'hidden',
		      value => $metaDataCert->{dn}->attribute('commonName') ],
		    [ name  => 'isCACert',   input => 'hidden',
		      value => $metaDataCert->{isCACert} ],
		    [ name  => 'expireDays', printableName =>
		      __('Days to expire'),  input => 'text' ]);

  if ( $passRequired ) {
    push ( @renewTable, [ name  => 'caPassphrase', input => 'password',
                         printableName => __('CA Passphrase') ]);
  }

  push ( @renewTable, [ printableName => '', 
                        component => '/ca/forceRenew.mas:buttons',
			action          => 'renew',
			printableAction => __('Renew')
                      ],
       );
</%init>
<!-- Form to renew a certificate -->
<h3><% __('Renew a certificate')  %></h3>
% if ( $metaDataCert->{'isCACert'} ) {
  <div class="warning">
    <% __('This operation will resign all the issued user certificates
  with the same expiration date')  %>
  </div>
% }
<div>
% if ( $metaDataCert->{'isCACert'} ) {
  <span class="ftitle"><% __('Organization Name')  %>: </span>
  <span class="ftitle">
    <% $metaDataCert->{dn}->attribute('organizationName')  %>
  </span>
% }
% else {
  <span class="ftitle"><% __("Common Name") %>: </span> 
  <span class="ftitle">
    <%$metaDataCert->{dn}->attribute('commonName')  %>
  </span>
% }
  <span class="ftitle"><% __("Expiration Date")  %>: </span>
  <span class="ftitle">
% my $date = $metaDataCert->{'expiryDate'};
  <%
    sprintf("%04d-%02d-%02d %02d:%02d:%02d", $date->year(),
	    $date->month(), $date->day(), $date->hours(),
	    $date->minutes(), $date->seconds()) 
  %>
  </span>
</div>
% if ( exists $metaDataCert->{'subjAltNames'} ) {
<div>
  <br>
  <span class="ftitle"><% __('Subject Alternative Names') %>: </span>
  <span class="ftitle">
%     my $subjAltNamesStr = join(', ', map { "$_->{type}:$_->{value}" } @{$metaDataCert->{'subjAltNames'}});
     <% $subjAltNamesStr %>
  </span>
</div>
% }
<br>
<form action="RenewCertificate" method="post" >
  <& formTable.mas, rows => \@renewTable &>
</form>