Search code examples
amazon-web-servicessslactive-directoryldap

AWS Managed AD SSL Certifcates export


I am trying to explore AD integration and was able to succesfully complete the setup as described in AWS blog post, and verified that SSL connection is working fine from "Management box".

Based on my understanding, ldp.exe from Management box is working fine because management box is joined to this AD and certificates are propagated properly.

I have use case where another linux box (which can't be joined to AD) but should use LDAPS over SSL to do some user search. For this to work, I need to export SSL and install it on Linux box. I couldn't quite figure out how to find and export certificates in this example? Are those certificates are available on RootCA (or) SubordinateCA and how to export them? appreciate any help.


Solution

  • I'm assuming you generated the SSL cert in AWS via Amazon Certificate Services (ACS). Although ACS won't allow you to export the private key from ACS, you shouldn't need it. All you need to do is import the public certificate into the certificate trust store that your Linux box is using when it connects to the AD server. I can't tell you how to do that (not sure what the application is), but you should be able to extract the public cert using openssl. You'll point openssl to the ad server, and have it output the public cert.

    I'm pretty sure this is the openssl command line that would do that: openssl s_client -showcerts -connect activedirectory.yourdomain.com:636