为什么RSA private文件在windows本地可以用,但是放到linux服务器上就不能用了?


我使用的rsa_private.pem文件,在本地windows开发机上可以正常使用,但是上传到linux的服务器上,就报错“openssl_sign(): supplied key param cannot be coerced into a private key” 程序代码是一样的,文件pem文件也是一样的,我就很费解了,相关资料比较少,不知道这里有没有大神遇到这个问题。

php openssl rsa

背光的暗面 8 years, 9 months ago

chmod a+x rsa_private.pem 试试呢

伊小若是深井冰 answered 8 years, 9 months ago

Your Answer