無法從 LDAPS 伺服器取得 SSL 憑證

無法從 LDAPS 伺服器取得 SSL 憑證

我正在嘗試從我的組織的 LDAPS 伺服器檢索公共 SSL 憑證。我正在按照說明進行操作這裡,建議我執行以下openssl命令:

openssl s_client -showcerts -connect mydomain.local:636

此命令建立了連接,但似乎表明未找到證書:

CONNECTED(000001C0)
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 308 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1535471188
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
write:errno=10054

這是否意味著我的組織在連接埠 636 上使用 LDAP 而不是 LDAPS?是否有其他方法可以取得我的組織用於 LDAPS 的 SSL 憑證?

答案1

這可能表示您的組織尚未在您連接到的網域控制站上安裝證書,或者它所擁有的證書無效/已過期。除非他們修復此問題,否則 LDAP 將不會偵聽 636(或 3269)。它只會偵聽 389(和 3268)上的非加密 LDAP。

相關內容