Improved loadCertificate so it stops after loading the first certificate
(issue #45)