php - 在 IIS 上通过 PHP 进行 LDAPS 连接

标签 php ssl iis

尝试通过 windows/PHP 整理 LDAPs 连接:

我有可用的 .pfx 证书和在 Windows 2012R2/IIS 8.5 上运行的 LDAP(s) 配置要求。我目前有一个文件夹结构:C:\OpenLDAP\sysconf,这里是我的 LDAP.Conf 文件,其中包含一个条目:

TLS_CACERT c:\openldap\sysconf\XXX.pfx

pfx 文件已加密,因此我假设我需要在 IIS 服务器上“安装”证书。

我有链所需的密码,但我不太清楚在 IIS 服务器上为这个特定要求安装证书的确切位置/过程。

谁能解释/指导我如何完成这方面的工作?

非常非常感谢您的帮助

最佳答案

您可以使用 Microsoft 管理控制台为 ActiveDirectory 服务导入/安装 pfx(私钥和证书存档)。

You need to launch MMC then import the certificate by selecting File->Add or remove snap-in->select Certificates->click add(to add it to the selected snap-ins)->click ok->select service account , then selecting local computer then selecting active directory service->finish.

此站点将指导您完成配置: 给出了完整的逐步信息

https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm

您可以通过 MMC 将公共(public)证书导入您的个人证书存储来验证您的 Ldap 配置,或者只需双击它并按照向导操作,然后使用 ldp 工具验证 SSL 连接。

关于php - 在 IIS 上通过 PHP 进行 LDAPS 连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36482097/

相关文章:

php - 如何根据模板部分对脚本进行排队?

php - 使用 CDN 进行用户图像和视频上传

php - 无法在 CodeIgniter 4 中发送服务器电子邮件

Google Cloud Platform 上的 SSL 证书

c# - 您能否将 IIS7 配置为在应用程序池启动/回收时自动启动 Windows Process Activation Service (WAS) 应用程序?

php - 使用 cookie 登录 iOS Web 服务

apache - 在服务器 b.example.com 上配置 Apache 以允许在没有警告的情况下从 example.com 请求 b.example.com 上的安全资源?

php - 当我启用 'Use Secure URLs in Frontend' 时,Magento 给出了奇怪的 url

go - 调用 appcmd 会导致设置错误的密码

node.js - 如何在 Azure 虚拟机上创建 Node.js 服务器