Refactored to successfully use incoming certs,keys and csrs as filepaths or plain text, changed unit test setups accordingly