How to Obtain a Certificate Using Windows Server 2008 Stand-Alone CA

 

Updated: May 13, 2016

Applies To: System Center 2012 R2 Operations Manager, System Center 2012 - Operations Manager, System Center 2012 SP1 - Operations Manager

Use the procedures in this topic to obtain a certificate from a stand-alone Windows Server 2008 R2, or Windows Server 2008 R2 SP1–based computer hosting Active Directory Certificate Services (AD CS). You use the CertReq command-line utility to request and accept a certificate, and you use a Web interface to submit and retrieve your certificate.

It is assumed that you have AD CS installed, an HTTPS binding is being used, and its associated certificate has been installed. Information about creating an HTTPS binding is available in the topic How to Configure an HTTPS Binding for a Windows Server 2008 CA.

Important

The content for this topic is based on the default settings for Windows Server 2008 AD CS; for example, setting the key length to 2048, selecting Microsoft Software Key Storage Provider as the CSP, and using Secure Hash Algorithm 1 (SHA1). Evaluate these selections against the requirements of your company’s security policy.

The high-level process to obtain a certificate from a stand-alone certification authority (CA) is as follows:

  1. Download the Trusted Root (CA) certificate.

  2. Import the Trusted Root (CA) certificate

  3. Create a setup information file to use with the CertReq command-line utility.

  4. Create a request file.

  5. Submit a request to the CA using the request file.

  6. Approve the pending certificate request.

  7. Retrieve the certificate from the CA.

  8. Import the certificate into the certificate store.

  9. Import the certificate into Operations Manager using MOMCertImport.

Download the Trusted Root (CA) certificate

To download the Trusted Root (CA) certificate

  1. Log on to the computer where you want to install a certificate; for example, the gateway server or management server.

  2. Start Internet Explorer, and connect to the computer hosting Certificate Services; for example, https://<servername>/certsrv.

  3. On the Welcome page, click Download a CA Certificate, certificate chain, or CRL.

  4. On the Download a CA Certificate, Certificate Chain, or CRL page, click Encoding method, click Base 64, and then click Download CA certificate chain.

  5. In the File Download dialog box, click Save and save the certificate; for example, Trustedca.p7b.

  6. When the download has finished, close Internet Explorer.

Import the Trusted Root (CA) certificate

To import the Trusted Root (CA) Certificate

  1. On the Windows desktop, click Start, and then click Run.

  2. In the Run dialog box, type mmc, and then click OK.

  3. In the Console1 window, click File, and then click Add/Remove Snap-in.

  4. In the Add/Remove Snap-in dialog box, click Add.

  5. In the Add Standalone Snap-in dialog box, click Certificates, and then click Add.

  6. In the Certificates snap-in dialog box, select Computer account, and then click Next.

  7. In the Select Computer dialog box, ensure that Local computer: (the computer this console is running on) is selected, and then click Finish.

  8. In the Add Standalone Snap-in dialog box, click Close.

  9. In the Add/Remove Snap-in dialog box, click OK.

  10. In the Console1 window, expand Certificates (Local Computer), expand Trusted Root Certification Authorities, and then click Certificates.

  11. Right-click Certificates, select All Tasks, and then click Import.

  12. In the Certificate Import Wizard, click Next.

  13. On the File to Import page, click Browse and select the location where you downloaded the CA certificate file, for example, TrustedCA.p7b, select the file, and then click Open.

  14. On the File to Import page, select Place all certificates in the following store and ensure that Trusted Root Certification Authorities appears in the Certificate store box, and then click Next.

  15. On the Completing the Certificate Import Wizard page, click Finish.

Create a setup information file

To create a setup information (.inf) file

  1. On the computer hosting the Operations Manager feature for which you are requesting a certificate, click Start, and then click Run.

  2. In the Run dialog box, type Notepad, and then click OK.

  3. Create a text file containing the following content:

    [NewRequest]

    Subject="CN=<FQDN of computer you are creating the certificate, for example, the gateway server or management server.>"

    Exportable=TRUE

    KeyLength=2048

    KeySpec=1

    KeyUsage=0xf0

    MachineKeySet=TRUE

    [EnhancedKeyUsageExtension]

    OID=1.3.6.1.5.5.7.3.1

    OID=1.3.6.1.5.5.7.3.2

  4. Save the file with an .inf file name extension, for example, RequestConfig.inf.

  5. Close Notepad.

Create a request file

To create a request file to use with a stand-alone CA

  1. On the computer hosting the Operations Manager feature for which you are requesting a certificate, click Start, and then click Run.

  2. In the Run dialog box, type cmd, and then click OK.

  3. In the command window, type CertReq –New –f RequestConfig.inf CertRequest.req, and then press ENTER.

  4. Open the resulting file (for example, CertRequest.req) with Notepad. Copy the contents of this file onto the clipboard.

Submit a request to the CA using the request file

To submit a request to a stand-alone CA

  1. On the computer hosting the Operations Manager feature for which you are requesting a certificate, start Internet Explorer, and then connect to the computer hosting Certificate Services (for example, https://<servername>/certsrv).

    Note

    If an HTTPS binding has not been configured on the Certificate Services Web site, the browser will fail to connect. For more information, see How to Configure an HTTPS Binding for a Windows Server 2008 CA.

  2. On the Microsoft Active Directory Certificate Services Welcome screen, click Request a certificate.

  3. On the Request a Certificate page, click advanced certificate request.

  4. On the Advanced Certificate Request page, click Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file, or submit a renewal request by using a base-64-encoded PKCS #7 file.

  5. On the Submit a Certificate Request or Renewal Request page, in the Saved Request text box, paste the contents of the CertRequest.req file that you copied in step 4 in the previous procedure, and then click Submit.

  6. Close Internet Explorer.

Approve the pending certificate request

To approve the pending certificate request

  1. Log on as a certification authority administrator to the computer hosting Active Directory Certificate Services.

  2. On the Windows desktop, click Start, point to Programs, point to Administrative Tools, and then click Certification Authority.

  3. In Certification Authority, expand the node for your certification authority name, and then click Pending Requests.

  4. In the results pane, right-click the pending request from the previous procedure, point to All Tasks, and then click Issue.

  5. Click Issued Certificates, and confirm the certificate you just issued is listed.

  6. Close Certification Authority.

Retrieve the certificate from the CA

To retrieve the certificate

  1. Log on to the computer where you want to install a certificate; for example, the gateway server or management server.

  2. Start Internet Explorer, and connect to the computer hosting Certificate Services (for example, https://<servername>/certsrv).

  3. On the Microsoft Active Directory Certificate Services Welcome page, click View the status of a pending certificate request.

  4. On the View the Status of a Pending Certificate Request page, click the certificate you requested.

  5. On the Certificate Issued page, select Base 64 encoded, and then click Download certificate.

  6. In the File Download – Security Warning dialog box, click Save, and save the certificate; for example, as NewCertificate.cer.

  7. On the Certificate Installed page, after you see the message that Your new certificate has been successfully installed, close the browser.

  8. Close Internet Explorer.

Import the certificate into the certificate store

To import the certificate into the certificate store

  1. On the computer hosting the Operations Manager feature for which you are configuring the certificate, click Start, and then click Run.

  2. In the Run dialog box, type cmd, and then click OK.

  3. In the command window, type CertReq –Accept NewCertifiate.cer, and then press ENTER.

Import the certificate into Operations Manager using MOMCertImport

To import the certificate into Operations Manager using MOMCertImport

  1. Log on to the computer where you installed the certificate with an account that is a member of the Administrators group.

  2. On the Windows desktop, click Start, and then click Run.

  3. In the Run dialog box, type cmd, and then click OK.

  4. At the command prompt, type <drive_letter>: (where <drive_letter> is the drive where the Operations Manager installation media is located), and then press ENTER.

  5. Type cd\SupportTools\i386, and then press ENTER.

    Note

    On 64-bit computers, type cd\SupportTools\amd64

  6. Type the following:

    MOMCertImport /SubjectName <Certificate Subject Name>

  7. Press ENTER.