bin/check_certificate.py: add DER certificates support

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>