I encountered this error today. It turned out that the file paths to my key and certificate were incorrect.