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

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

WBOY
Release: 2016-06-06 20:29:33
Original
2196 people have browsed it

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

回复内容:

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

chmod a+x rsa_private.pem 试试呢

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template