adding code to read cert from file
assume that the certificate files are in the same directory as the yaml config file