Re: Create certificate with makecert for LDAPS on a DC ?



Is this for a test environment? Self-signed certs are ok for dinking
around, but they are almost never appropriate to be used for real.

Note that you can get a perfectly good publicly rooted SSL cert from many
different places now for about $20. It isn't a big deal.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"bigstyle [MVP]" <newsgroup@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:mn.62d37d7cfd7a2c5e.70874@xxxxxxxxxxxxxxxxxxxxxxxxxx
Finally it works !

I have deleted every certs then I have created them by using the command
quoted below.

After a reboot of the DC, the LDAP over 636 is working fine !

Thank you
Hi,

I would like to use LDAPS on my DC.
I have already read this article :
http://support.microsoft.com/default.aspx/kb/321051 ...

but I am not able to create my self-signed certificate with certreq as I
dont have any CA in my domain to submit the "request.req" file.

1. So I tried to create my own certificate with makecert by using this
command :
"makecert -r -pe -n "CN=FQDN_OF_DC.domain.local" -b 01/01/2000 -e
01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky
exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12"

The certificate is created in Personal\Certificates (under Computer) but
when I watch the certificate status, I have a warning saying : "This CA
Root certificate is not trusted because it is not in the Trusted Root
Certification Authorities store.".

2. I have also tried to create a trusted root CA certificate by using
this command :
"makecert -n "CN=TempCA" -r -sv TempCA.pvk TempCA.cer"
Then I have created a server certificate trusted by this "TempCA" by
typing this command :
"makecert -sk PourDC -iv TempCA.pvk -n "CN=FQDN_OF_DC.domain.local" -ic
TempCA.cer PourDC.cer -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky
exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12"

When I try to connect (locally)to my LDAPS using ldp.exe (port 636 but
without SSL option marked) , I have an error "Error <0x51>: Fail to
connect to FQDN_OF_DC.domain.local."

Do I need to install a CA only for my testing purpose ?
I think it is possible by using makecert and I would like to find how !
:D


Thank you

P.S: Sorry for my english

--

bigstyle
MVP Windows Server - Directory Services
MCSE 2000/2003 Security




.



Relevant Pages

  • Re: Create certificate with makecert for LDAPS on a DC ?
    ... I have deleted every certs then I have created them by using the command quoted below. ... but I am not able to create my self-signed certificate with certreq as I dont have any CA in my domain to submit the "request.req" file. ... The certificate is created in Personal\Certificates but when I watch the certificate status, I have a warning saying: "This CA Root certificate is not trusted because it is not in the Trusted Root Certification Authorities store.". ...
    (microsoft.public.windows.server.security)
  • Re: ADFS and Certificate Services
    ... ADFS even allows you to do client certificate ... Joe Kaplan-MS MVP Directory Services Programming ... We just want to be able to give out certs to our own ... sub-CA on the internet for employees to access remotely to get certs. ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADFS Proxy Cert issue
    ... know the command line for requesting a proper client certificate though. ... you would start getting these certs from the CA that you will ... FSP setup better. ...
    (microsoft.public.windows.server.active_directory)
  • Re: X509 Cert Services Cert
    ... oddest thing is that my Versign certs seem to work fine (with certificate ... for some reason cert service certs don't work for me. ... Ensure that the web service will have access to its private key in the ... > pressing Add, typing ASPNET, and then pressing OK. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: ADFS and Certificate Services
    ... sub-CA on the internet for employees to access remotely to get certs. ... Essentially, to become a certificates "reseller", you need a CA certificate ...
    (microsoft.public.windows.server.active_directory)