相关疑难解决方法(0)

OpenSSL和读取openssl.conf文件时出错

我正在运行Windows XP 32位

我刚刚从以下URL下载了Openssl并安装了它. http://www.slproweb.com/products/Win32OpenSSL.html

然后我尝试使用以下命令创建自签名证书

openssl req -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem
Run Code Online (Sandbox Code Playgroud)

然后它开始给出以下错误

无法从/usr/local/ssl/openssl.cnf加载配置信息

然后谷歌搜索后我改变了上面的命令

openssl req -config C:\OpenSSL\bin\openssl.conf -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem
Run Code Online (Sandbox Code Playgroud)

但现在我在命令提示符中收到以下错误

C:\ OpenSSL\bin\openssl.conf的第-1行错误
4220:错误:02001002:系统库:fopen:没有这样的文件或目录:.\ crypto\bio\bss_file.c:126:fopen('C:\OpenSSL\bin\openssl.conf','rb')4220:错误:2006D080:BIO例程:BIO_new_file:没有这样的文件:.\ crypto\bio\bss_file.c:129:
4220:错误:0E078072:配置文件例程:DEF_LOAD:没有这样的文件:.\ crypto\conf\conf_def.c:197:

请帮忙.提前致谢.

windows configuration openssl environment-variables

113
推荐指数
9
解决办法
30万
查看次数

为什么openssl_pkey_new()会失败?

我对此很新.为什么openssl_pkey_new()返回假?

我正在使用XAMPP,Apahce\bin目录下有一个OpenSSL .

我做的是什么明显的初学者错误?也许这是SSL配置的问题?

我的目标是将两个密钥写入两个文件.


更新:按照建议,我用过openssl_error_string(),它说error:02001003:system library:fopen:No such process.听起来好像OpenSSL没有运行或者不在路径中?有任何想法吗?


更新:我c:\xampp\php进入Windows路径,以便它可以找到libeay32.dll并重新启动Apache.

现在我明白了error:2006D080:BIO routines:BIO_new_file:no such file.有任何想法吗?

php windows xampp openssl

11
推荐指数
1
解决办法
1万
查看次数

XAMPP 3.2.1和typo3 6.2 OpenSSL无法正常工作

我确实有以下问题.试图在我的本地机器上安装typo3 6.2 xampp 3.2.1安装程序告诉我"PHP OpenSSL扩展无法正常工作"

到目前为止我做了什么:

  • 在我的php/bin中检查了extension = php_openssl.dll
  • "sysext","rsaauth"和"saltedpasswords"都在我的typo3文件夹中
  • apache ssl_module正在运行
  • 把ssl放在系统变量中

我也试过降级到OpenSSL 0.9.8,但仍然得到错误.顺便说一下,我在每次编辑后都重新启动了xampp.

我在Windows 8.1上运行xampp

xampp openssl typo3

2
推荐指数
1
解决办法
6413
查看次数