How to add an email address into a certificates report
Originally Published: 2013-10-01
Last Modified: 2023-10-06
Article Number
Applies To
Issue
How to add an email address into a certificates report
Adding email address into a certificates report
From Certificate Operations workbench => Reporting - reports => click on 'Search and Report' button and then click on the CSV or HTML link, or the 'Generate Report' button is clicked to generate the report and then CSV or HTML link is clicked... the report does not include email address column.
Resolution
Although an email address is not included into a generated certificate report it can be added manually by modifying the file cert-report-results.xuda under /WebServer/admin-server/ca/cert-ops/
1) Adding email into the HTML output header.
In the code around line 549 add the line !FPuts( HTMLFileName,"<TD><B>Email Address</B></TD>") like below:
!if generateHTML="true"
!FPuts( HTMLFileName,"<TABLE BORDER=1>")
!FPuts( HTMLFileName,"<TR ALIGN=LEFT>")
!FPuts( HTMLFileName,"<TD><B>Status</B></TD><TD><B>Serial Number</B></TD>")
!FPuts( HTMLFileName,"<TD><B>Certificate DN</B></TD>")
!FPuts( HTMLFileName,"<TD><B>Creation</B></TD><TD><B>Expiry</B></TD><TD><B>Certificate Profile Name</B></TD>")
<!-- ADDED HERE -->
!FPuts( HTMLFileName,"<TD><B>Email Address</B></TD>")
<!-- ----------------- -->
!FPuts( HTMLFileName,"</TR>")
!endif
2) To add an email address field to CSV output add the following code in the if statement !if generateCSV="true" around line 592. For example:
!if generateCSV="true"
!FPuts( CSVFileName, [cert_status] )
!FPuts( CSVFileName, ',' )
!FPuts( CSVFileName, [xuda_certificate.serial_no] )
!FPuts( CSVFileName, ',"' )
!FPuts( CSVFileName, [xuda_certificate.certdn] )
!FPuts( CSVFileName, '",' )
!FPuts( CSVFileName, [xuda_certificate.notbefore_dte] )
!FPuts( CSVFileName, ',' )
!FPuts( CSVFileName, [xuda_certificate.notafter_dte] )
!if xuda_certificate.cert_profilename="DEFINED"
!FPuts( CSVFileName, ',' )
!FPuts( CSVFileName, [xuda_certificate.cert_profilename])
!else
!FPuts( CSVFileName, ',' )
!endif
<!-- ADDED HERE -->
!if xuda_certificate.email="DEFINED"
!FPuts( CSVFileName, ',' )
!FPuts( CSVFileName, [xuda_certificate.email])
!else
!FPuts( CSVFileName, ',' )
!endif
<!-- ----------------- -->
!FPuts( CSVFileName, newline )
!endif
3) In order to add an email address in the html output add the following code into the if statement !if generateHTML="true" around line 611.
You will end up with the following:
!if generateHTML="true"
!FPuts( HTMLFileName,"<TR ALIGN=LEFT>")
!FPuts( HTMLFileName, <TD>[cert_status]</TD>)
!FPuts( HTMLFileName, <TD>[xuda_certificate.serial_no]</TD>)
!FPuts( HTMLFileName, <TD>[xuda_certificate.certdn]</TD>)
!FPuts( HTMLFileName, <TD>[xuda_certificate.notbefore_dte]</TD>)
!FPuts( HTMLFileName, <TD>[xuda_certificate.notafter_dte]</TD>)
!if xuda_certificate.cert_profilename="DEFINED"
!FPuts( HTMLFileName, <TD>[xuda_certificate.cert_profilename]</TD>)
!else
!FPuts( HTMLFileName, <TD><B>  </B></TD>)
!endif
<!-- ADDED HERE -->
!if xuda_certificate.email="DEFINED"
!FPuts( HTMLFileName, <TD>[xuda_certificate.email]</TD>)
!else
!FPuts( HTMLFileName, <TD><B>  </B></TD>)
!endif
<!-- ----------------- -->
!FPuts( HTMLFileName,"</TR>")
!endif
Notes
Note that the changes could be over-written by any future Hot Fix/patch.
CERTMGR-3842
CERTMGR-4322
CERTMGR-4322
Related Articles
How to configure RSA Mobile return email address 5Number of Views Which email address should I use to register for RSA Community or myRSA access? 48Number of Views Enable Users to Update Phone Numbers and E-mail Addresses 22Number of Views RSA Cloud Authentication Service Identity Source Synchronization reports user accounts with Duplicate Email Address 179Number of Views Configuring Auth Manager 7.1 to pull email address/phone number from AD for on-demand tokens 66Number of Views
Trending Articles
Deploy an Identity Router Virtual Machine in Microsoft Azure How to Replace the Web Server Certificate for the RSA Identity Governance & Lifecycle Web Console How to download the RSA Authentication Manager Console Root Certificate in DER format How to Change the Token Lifetime Extension Window in Authentication Manager Using rsautil AFX Server and Remote Collection Agents fail to start after updating Java to version 1.8u241 (1.8.0_241) / 1.7u251 (1.7.0_…
Don't see what you're looking for?