Update certificate.php