Closed init5-SF closed 11 months ago
UPDATE
I created a selfsigned cert and installed it on the DC and now Certipy works without errors. Certipy just needs a little bit of error handling, other than that all is fine.
@init5-SF thanks for reporting your results. Based on that, it sounds like this response should say something more like "No certificate installed on the target." ?
hi @altjx Yes that's pretty much it, some sort of error handling 👍🏼
The reason it fails is because the DC has not been issued a certificate for server authentication. Certipy will try LDAPS by default which requires the server to have a certificate for server authentication. If it doesn't, the server closes the connection. If you want to proceed without adding a certificate on the DC, then switch to plaintext LDAP with -scheme ldap
.
I am trying Certipy v4.8.2 against a windows server 2022 (21H2) DC, I am getting the below error:
The server doesn't have a certificate and doesn't even have the CA role installed, it is JUST a domain controller. Is that what's causing the crash?
Thanks!