We're trying to get a Sophos XG 210 to connect via LDAPS to an Active Directory Domain Services (AD DS) / Domain Controller (DC) server but doing so fails with the following two errors:
Device - AD server connectivity test failed
Connectivity to AD server %privateIPAddress% failed with error hostname does not match CN in peer certificate
I contacted Sophos and their senior technical support:
How do we get AD CS to issue a certificate to an IP address?
Update 2017/08/23 17:58:
I have:
RequestPolicy.inf
with the following contents:[Version]
Signature="$Windows NT$"[NewRequest]
Subject = "CN=%DC_Server_FQDN%"Exportable = FALSE
KeyLength = 2048
KeySpec = 1
KeyUsage = 0xA0
MachineKeySet = True
ProviderName = "Microsoft RSA SChannel Cryptographic Provider"RequestType = PKCS10
[EnhancedKeyUsageExtension]
OID=1.3.6.1.5.5.7.3.1[Extensions]
2.5.29.17 = "{text}"
_continue_ = "ipaddress=%DC_Server_IP_Address%&"[RequestAttributes]
CertificateTemplate = WebServer
certreq -new "%Path%\RequestPolicy.inf" "%Path%\certnew.req"
certreq -submit "%Path%\certnew.req" "%Path%\certnew.cer"
certreq -retrieve %Request_ID% "%Path%\certnew.cer"
certreq -accept "%Path%\certnew.cer"
Subject Alternative Name
included IP Address=%DC_Server_IP_Address%
Certificate Template Name
was WebServer
but I think it needs to be DomainController
RequestPolicy.inf
replacing line CertificateTemplate = WebServer
with line CertificateTemplate = DomainController
certreq
commands which failed with the following error: Active Directory Enrollment Policy
{%GUID%}
ldap:
RequestId: %Request_ID%
RequestId: "%Request_ID%"
Certificate not issued (Denied) Denied by Policy Module The DNS name is unavailable and cannot be added to the Subject Alternate name. 0x8009480f (-2146875377) Certificate Request Processor: The DNS name is unavailable and cannot be added t o the Subject Alternate name. 0x8009480f (-2146875377)
Denied by Policy Module
Domain Controller Authentication
changing Subject Name
from Build from this Active Directory information
to Supply in the request
. I haven't been able to get past the domain controller template-related errors.
Update 2017/08/25 09:10:
I have:
Domain Controller
as template Domain Controller 2
with Subject Name
changed from Build from this Active Directory information
to Supply in the request
.certreq
commands which failed with the following errors: Template not found. Do you wish to continue anyway?
DomainController2Certificate not issued (Denied) Denied by Policy Module 0x80094800, The request was for a certificate template that is not supported by the Active Directory Ce rtificate Services policy: DomainController2/DomainController2.
The requested certificate template is not supported by this CA. 0x80094800 (-21 46875392)
Certificate Request Processor: The requested certificate template is not supported by this CA. 0x80094800 (-2146875392)
Denied by Policy Module 0x80094800, The request was for a certificate template that is not supported by the Active Directory Certificate Services policy: Domai nController2/DomainController2.
Domain Controller 2
's ACLs included allowing read for Authenticated Users.
Update 2017/12/04:
Sophos XG firmware 17.0+ supports the "feature" of connecting LDAPS via DNS, rather than IP address, so I no longer need to do this but I'm going to leave this question open as it still stands.
User contributions licensed under CC BY-SA 3.0