adding reading of certificates from file