windows下安装PrestaShop报错
Unable to generate private keys using openssl_pkey_new. Check your OpenSSL configuration, especially the path to openssl.cafile.
这里只说解决办法,不讨论程序运行
不论是xampp, wamp, wnmp, PHPstudy,还是宝塔,都可能产生这个问题
In Windows you need to go in "Environment Variables" in "System Variables" Add Variable name: "OPENSSL_CONF" Variable Value: "X:\XXX\XXX\XXX\openssl.cnf" path where you installed xampp, wamp, wnmp . Restart PC It will work.
打开系统属性,找到环境变量
在系统变量中添加OPENSSL_CONF,变量值为你安装环境下对应配置文件位置,比如我的D:\BtSoft\php\74\extras\ssl\openssl.cnf,找不到可以搜索openssl.cnf
确定后重启服务器,提示错误会消失