我因为使用了file_put_content 会出现这个错误 直接使用将私钥复制出来了 把头尾去掉 修改为一行字符串传进去就行了 转载于:https://www.cnblogs.com/ikai/p/9639298.html