Added support to not just read certs from files but also from variables.