Initial set of helper functions to handle key/cert loading.