Added getCertificate example in main (commented)