Home > Backend Development > PHP Tutorial > php5.38 openssl_get_privatekey()这个方法不能用 求大神帮助

php5.38 openssl_get_privatekey()这个方法不能用 求大神帮助

不言
Release: 2023-02-28 17:02:02
Original
1985 people have browsed it

$priv_key = file_get_contents("pcarduser-sandbox-fzh.pem");  	
$pkeyid = openssl_get_privatekey($priv_key);//运行到这里就报错
Fatal error: Call to undefined function openssl_get_privatekey()	
openssl_sign($kq_all_para, $signMsg, $pkeyid,OPENSSL_ALGO_SHA1);// compute signature	
openssl_free_key($pkeyid);	
// free the key from memory	
$kq_sign_msg = base64_encode($signMsg);
Copy after login

求大神 !   帮帮忙啊!

回复讨论(解决方案)

openssl_pkey_get_private().具php.net上是说这个方法是一个别名,尝试下这个方法.

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