Fixed loading of the certificate file to handle a chain of certificates.