added support for taking management certificate as a string argument instead of file argument