Debug option & certificate check (PHP)

Added debug option, thus <info> elements aren't normally shown. Added
PHP function to check certificate (public key size & validity).

TODO: Fix for certificate rollover situations. Now it'd fail due to
expired/wrong certificate.