Password Certificati

Domande sulle funzionalità di backend: amministrazione utenti e corsi, certificati, iscrizioni, report, ...
User avatar
pexlex
FormaLms User
Posts: 197
Joined: Wed Sep 09, 2015 11:56 pm
Version: forma.lms 2.0

Password Certificati

Post by pexlex »

Salve, quando vengono generati i certificati vengono protetti da password. Come faccio a sapere quale è la password'? :roll: :roll:

alfa24
Senior Boarder
Posts: 1611
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Password Certificati

Post by alfa24 »

Guarda nel config.php.
I'm Jasmines, the One. If you need, you can contact me.

User avatar
pexlex
FormaLms User
Posts: 197
Joined: Wed Sep 09, 2015 11:56 pm
Version: forma.lms 2.0

Re: Password Certificati

Post by pexlex »

Grazie mille alfa24

claudiostel
FormaLms User
Posts: 98
Joined: Sat Jun 27, 2020 10:25 am

Re: Password Certificati

Post by claudiostel »

Volendo è possibile generare certificati non codificati?
Ovvero senza password?

alfa24
Senior Boarder
Posts: 1611
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Password Certificati

Post by alfa24 »

In /appLms/lib/lib.certificate.php individua nella function getPdf le seguenti:

Code: Select all

$pdf = new PDF($orientation);
$pdf->setEncrypted(Get::cfg('certificate_encryption', true));
$pdf->setPassword(Get::cfg('certificate_password', null));
Tieni solo la prima riga.

Oppure, meglio, nel file config.php:

Code: Select all

$cfg['certificate_encryption'] = false;
quindi in /appLms/lib/lib.certificate.php le precedenti 3 righe diventano:

Code: Select all

$pdf = new PDF($orientation);
if(Get::cfg('certificate_encryption', false))
	{
		$pdf->setEncrypted(true);
		$pdf->setPassword(Get::cfg('certificate_password', null));
	}
I'm Jasmines, the One. If you need, you can contact me.

claudiostel
FormaLms User
Posts: 98
Joined: Sat Jun 27, 2020 10:25 am

Re: Password Certificati

Post by claudiostel »

Grazie per la celere risposta.
Le modifiche sono immediatamente effettive?

alfa24
Senior Boarder
Posts: 1611
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Password Certificati

Post by alfa24 »

Che intendi?
I'm Jasmines, the One. If you need, you can contact me.

claudiostel
FormaLms User
Posts: 98
Joined: Sat Jun 27, 2020 10:25 am

Re: Password Certificati

Post by claudiostel »

Ho apportato le modifiche indicate ma persiste la password

alfa24
Senior Boarder
Posts: 1611
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Password Certificati

Post by alfa24 »

Non stai tentando di riscaricare un certificato generato prima della modifica vero?
I'm Jasmines, the One. If you need, you can contact me.

claudiostel
FormaLms User
Posts: 98
Joined: Sat Jun 27, 2020 10:25 am

Re: Password Certificati

Post by claudiostel »

Assolutamente no.
Dopo le modifiche elimino l'attestato e lo rigenero.
In questo modo dovrebbe generare l'attestato con le nuove regole. Dovrebbe

Post Reply