Propagate error if cert/key could not be used instead of continuing with an invalid context which might cause a segmentation fault