- Navigate to your Microsoft CA server. For example:
http://CAServerAddress/certsrv/ - Enter your username and password.
- On the Microsoft Active Directory Certificate Services homepage, click Request a certificate.
- Click Advanced certificate request.
- Paste the .csr file content in the Saved Request field.
- Choose "User" from the Certificate Template pop-up menu.
- Click Submit.Note:
If your server is not configured with the auto-approve option, have the submitted certificate request manually approved before clicking View the status of a pending certificate request and continuing to step 8.
- Select Base 64 encoded.
- Click Download certificate, and then rename the certificate as user.cer.
- Click Download certificate chain to download the .p7b file.
- To extract certificates from the .p7b file, do the following:
- Double-click the file and enter your Keychain Access authentication.
- In Keychain Access, control-click the root certificate to export it as a .cer file. You can now rename and save it elsewhere. The recommended file name is ca.cer.
- Click Save.
- (Optional) If you have an intermediate or issuing CA certificate, export and rename those as well. The recommended file names are int.cer and issuer.cer, respectively.
- To import all certificates to the keystore, execute the following commands in this order:
sudo keytool -import -alias root -keystore /path/to/saved/keystore.jks -trustcacerts -file /path/to/saved/ca.cerNote:If prompted to trust the certificate, enter "yes" to trust this certificate and all subsequent certificates.
sudo keytool -import -alias intermed -keystore /path/to/saved/keystore.jks -trustcacerts -file /path/to/saved/int.cersudo keytool -import -alias scepca -keystore /path/to/saved/keystore.jks -trustcacerts -file /path/to/saved/user.cer