FlorianLeo

Q: OD and CA, issuing a Certificate

I'd like to show my experience with the Certificate Authority that comes with Open Directory once you configure/enable Open Directory (no mater if you do this through Server.app or via CLI with slapconfig -createldapmasterandadmin - I've tried both ways ).

 

I did this with 2 VMs (El Capitan and Server 5)

 

After OD is operational I went to KeyChain to see what had changed - and, yes, Certificates from CA, and intermediateCA are in place - everything as expected. But just look at the screenshot - it's self-explanatory.

CA via regular administrator account.png

Hm - that doesn't look good! How would I be able to utilize the CA|intermediateCA? Well - try it, and see what happens.

Step 1 - use Certificate Assistant>Create a Certificate

Create Certificate via regular administrator account 1.png

Step 2 - nothing special here - just trying!

Create Certificate via regular administrator account 2.png

Step 3 - that's where the "Aha" popped out.

Create Certificate via regular administrator account 3.png

Step 4 - provide the credentials necessary to open the System-Keychain - usually from the administrator-account you logged into the computer with.

Create Certificate via regular administrator account 4.png

Step 5 - é voilá - there's the Certificate. That used to work in the past already.

Create Certificate via regular administrator account 5.png

Step 6 - export this certificate - and that used to fail.

Export Certficate 3.png

Step 7 - provide a password since you're going to export a certificate WITH a private key i.e. a p12-file.

Export Certificate 2.png

Step 8 - provide the password for the account you logged into the computer.

Export Certificate 3.png

Once you hit enter the certificate, together with the keys, is exported.

Finally - I remember that this procedure used to fail.

I've tried to import this p12-file and it worked! Just make sure that the other machine has the CA-certificate, and the intermediateCA-certificate (preferably in the System-Keychain) installed, so the "trust-chain" is complete.

Posted on Feb 19, 2016 8:31 AM