Need help ignoring server certificate while binding to LDAP server using PHP

后端 未结 2 448
猫巷女王i
猫巷女王i 2020-12-28 17:27

I\'m trying to bind to an LDAP server using PHP. It\'s a fairly straightforward process, except that I can\'t get around a certificate error that I\'m getting. My auth cred

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-28 18:08

    Use a web browser, point at ldaps://ipaddress/

    when the cert pop up box shows up, view the cert, look at the cert chain, find the trusted root (not the specific cert being used, rather the parent who signed it) then export THAT cert. Save in in PEM and B64 format. (Binary and B64 encoded).

    Then use that to get it into the PHP keystore format, whichever that is. Java keystores are easy. Not sure what PHP uses.

提交回复
热议问题