Hello All,
I have a c# ADSI application which is running on a machine part of same domain as that of the target AD domain. With SSL enabled I get error
"The certificate received from the remote server was issued by an untrusted certificate authority. Because of this, none of the data contained in the certificate can be validated. The SSL connection request has failed. The attached data contains the server certificate."
The above error I see on the machine where my c# app is running in Event Viewer --> System
Below is my setup detail:-
Parent domain - parent.com
Child domain - child.parent.com
Machine part of parent.com – machine1.parent.com (this is where c# app is running)
To enable SSL I have followed below steps:-
Followed below steps on the DC machine (parent.com machine)
- Installed the "Active directory Certificate Services" on parent.com DC. This role includes below services
- Certificate Authority
- Certificate Authority For Web Enrollment
- Online Responder
- Certificate enrollment Policy Web Service
- CA type is ‘Enterprise Root CA’. Selected all default values in the setup wizard.
- In Group policy management (gpmc.msc), I completed ‘Automatic Certificate Request Wizard’ as below:-
- Under domains (parent.com), right click ‘Default Domain Policy’. (This opens a new window)
- Computer Configuration --> Policies --> Windows Settings --> Security Settings --> Public Key Policies --> Automatic Certificate Request Wizard. Created a Domain controller template.
- Added root CA (C:\WIndows\System32\Certsrv\CertEnroll\<parentDCMachineName.Parent.com-CA.crt>) to ‘Trusted Root Certification Authority’ as below:-
- Start--> Run --> mmc
- File--> Add/Remoce Snap-in --> Certificates --> Computer Account – Local
- Expand ‘Certificates (Local Computer)’
- Right click ‘Trusted Root Certification Authority’, All Tasks --> Import
- Import <C:\WIndows\System32\Certsrv\CertEnroll\<parentDCMachineName.Parent.com-CA.crt>
- Complete the wizard
Verified/Added below on the machine (machine1.parent.com)
- Added root CA created on DC to ‘Trusted Root Certification Authority’ of this machine.
As soon as I run the c# app, I see that error.
Have I missed anything? Please help.
/M