Add a method for parsing X509 certificates from a file.