Totara Learn Open Discussions

Certificate Password

 
? ?
Certificate Password
by ? ? - Friday, 20 November 2020, 1:46 PM
 

Hi,

When I add a certificate of completion to a course, Totara produces a pdf file of the certificate for my learners to download.  When this certificate is downloaded, it is password protected.  Does anyone know what the password is or how to turn it off?

Thank you,

Kent

Craig Eves
Re: Certificate Password
by Craig Eves (Totara Support) - Sunday, 22 November 2020, 7:22 PM
Group Totara

Hi Kent

This is from the SetProtection method description and is to ensure certificates are not being changed by users after being issued. Unfortunately there is no option in the user interface to switch this off. By default Totara does not set a password and this is why it's possible to access without one.

The code that controls/enables this in the standard Totara certificate module is:

$pdf->SetProtection(array('modify'));

Removing this/commenting it out from this from each of the four certificate types should remove the password protection (i.e /mod/certificate/type/XXX/certificate.php). You should not need to edit the tcpdf library at all ( lib/tcpdf/tcpdf.php).

Changes of this type would be considered a customisation and would need to be fully tested by yourselves (any issues that were a result of customisation would be unsupported).

Regards