小智 10
要解决这个问题,需要做两件事:
1)确保您的Apache bin目录中没有libeay32.dll和ssleay32.dll的符号链接(例如,我的是:C:\ wamp64\bin\apache\apache2.4.23\bin)
如果您确实有符号链接(即文件大小为0字节),则需要从Apache Lounge下载dll.例如,我从https://www.apachelounge.com/download/上托管的64位版本的Apache 2.4.23中获取了两个.dll文件.
2)恢复实际的.dll文件后,需要确保WampServer不会覆盖它们.WampServer 3有一个配置脚本,每次启动时都会运行.在该脚本中,它将使用符号链接覆盖这些.dll.您必须禁用该功能.为此,请在以下位置注释掉对这两个文件的引用:C:\ wamp64\scripts\config.inc.php(我的位于第133和139行).
这应该允许您在Apache中启用mod_ssl模块.在启用mod_ssl的情况下正确启动Apache后,您还需要取消注释"Include conf/extra/httpd-ssl.conf".(但是,您可能需要删除其中的大部分内容并重新开始,因为它包含大量硬编码路径和错误)
...“在 DLL 文件 C:\wamp64\bin\apache\apache2.4.17\bin\openssl.exe 中找不到序号 372”
我推测它PEM_SealInit或SSL_CONF_cmd_argv来自 OpenSSL 1.0.2;或 ASN1_i2d_fp或SSL_SESSION_set1_id_context来自 OpenSSL 1.1.0。
# OpenSSL 1.1.0
$ find $PWD -type f -iname '*.num' -exec grep " 372" {} \;
ASN1_i2d_fp 372 1_1_0 EXIST::FUNCTION:STDIO
SSL_SESSION_set1_id_context 372 1_1_0 EXIST::FUNCTION:
...
# OpenSSL 1.0.2
$ find $PWD -type f -iname '*.num' -exec grep " 372" {} \;
PEM_SealInit 372 EXIST::FUNCTION:RSA
SSL_CONF_cmd_argv 372 EXIST::FUNCTION:
...
Run Code Online (Sandbox Code Playgroud)
您需要使用Dependency Walkerdumpbin或Dependency Walker 来验证它。另请参阅如何从序数中找到导出的函数名称(按序数导出)?在堆栈溢出上。
序数是使用创建的<openssl src>\util\mkdef.pl。您可以从 OpenSSL 的 GitHub 上查看源代码。这里是 1.0.2,这里是 1.1.0。
以下是该文件的主要注释:
#!/usr/local/bin/perl -w
#
# generate a .def file
#
# It does this by parsing the header files and looking for the
# prototyped functions: it then prunes the output.
#
# Intermediary files are created, call libcrypto.num and libssl.num,
# The format of these files is:
#
# routine-name nnnn vers info
#
# The "nnnn" and "vers" fields are the numeric id and version for the symbol
# respectively. The "info" part is actually a colon-separated string of fields
# with the following meaning:
#
# existence:platform:kind:algorithms
#
# - "existence" can be "EXIST" or "NOEXIST" depending on if the symbol is
# found somewhere in the source,
# - "platforms" is empty if it exists on all platforms, otherwise it contains
# comma-separated list of the platform, just as they are if the symbol exists
# for those platforms, or prepended with a "!" if not. This helps resolve
# symbol name variants for platforms where the names are too long for the
# compiler or linker, or if the systems is case insensitive and there is a
# clash, or the symbol is implemented differently (see
# EXPORT_VAR_AS_FUNCTION). This script assumes renaming of symbols is found
# in the file crypto/symhacks.h.
# The semantics for the platforms is that every item is checked against the
# environment. For the negative items ("!FOO"), if any of them is false
# (i.e. "FOO" is true) in the environment, the corresponding symbol can't be
# used. For the positive itms, if all of them are false in the environment,
# the corresponding symbol can't be used. Any combination of positive and
# negative items are possible, and of course leave room for some redundancy.
# - "kind" is "FUNCTION" or "VARIABLE". The meaning of that is obvious.
# - "algorithms" is a comma-separated list of algorithm names. This helps
# exclude symbols that are part of an algorithm that some user wants to
# exclude.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7298 次 |
| 最近记录: |