Sunday, June 1, 2014

How to install a certificate to a Windows Server 2008 R2 SP1 from a Windows Server 2003 R2 SP1 Standalone CA which is the certificate enrollment Web pages is not patch

How to install a certificate to a Windows Server 2008 R2 SP1 from a Windows Server 2003 R2 SP1 Standalone CA which is the certificate enrollment Web pages is not patch (http://support.microsoft.com/kb/922706/en-us)

Since the Windows Server 2008 R2 cannot download and install the Root CA certificates and also request a client certificates from a Windows Server 2003 R2 SP1 Standalone CA which is the certificate enrollment Web pages is not patched.

We will need a Windows XP (Or Windows Server 2003) machine to complete the task.

Download the Root CA certificates

1: On a Windows XPstart the Internet Explorer
2. Go to the certificate server website (in our case http://abc....../certsrv)
3. Click on Download CA certificate, certificate chain, or CRL
4. Click Download CA Certificate chain and save it on the machine.
5. Once the certificate is downloaded, copy it to the unmanaged Windows Server 2008 R2 (Our target monitored server)

6. Login the unmanaged Windows Server 2008 R2

7. Open an MMC connect to Local Computer and load the certificates snap-in (Local Computer)
8. Go to Trusted Root Certification Authorities right click, all tasks, import and import the Root CA.

Request the unmanaged Windows Server client certificates and installation

1. start the Internet Explorer
2. Go to the certificate server website (in our case http://demo-dc01/certsrv)
3. Click on Request a certificate, choose Advanced certificate request next click

Create and submit a request to this CA

On the Advanced Certificate Request page, do the following:

  1. Under Identifying Information, in the Name field, enter a unique name, for example, the fully qualified domain name (FQDN) of the computer you are requesting the certificate for. For the remaining fields, enter the appropriate information.

clip_image001Note

Event ID 20052 of type Error is generated if the FQDN entered into the Name field does not match the computer name.

 

  1. Under Type of Certificate Needed:
    Click the list, and then select Other.
    In the OID field, enter 1.3.6.1.5.5.7.3.1,1.3.6.1.5.5.7.3.2
  2. Under Key Options, make the following selections:
    Click Create a new key set
    In the CSP field, select Microsoft Enhanced Cryptographic Provider v1.0
    Under Key Usage, select Both
    Under Key Size, select 1024
    Select Automatic key container name
    Select Mark keys as exportable
    Clear Export keys to file (not required for Windows Server 2008 AD CS)
    Clear Enable strong private key protection
    Click Store certificate in the local computer certificate store.
  3. Under Additional Options:
    Under Request Format, select CMC
    In the Hash Algorithm list, select SHA-1
    Clear Save request to a file
    In the Friendly Name field, enter the FQDN of the computer that you are requesting the certificate for.
  4. Click Submit.
  5. If a Potential Security Violation dialog box is displayed, click Yes.
  6. When a Certificate Pending page displays, close the browser.

To approve the pending certificate request

  1. Log on to the computer hosting Certificate Services as a certification authority administrator.
  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.

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, http://<servername>/certsrv).
  3. On the Microsoft 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, click Install this certificate.
  6. In the Potential Scripting Violation dialog box, click Yes.
  7. On the Certificate Installed page, after you see the message that Your new certificate has been successfully installed, close the browser.

On Windows XP

Step 4: Open an MMC connect to Local Computer and load the certificates snap-in (Local Computer)

Step 5: Go to Personal, select the client certificate which is you just installed right click, all tasks, export -> “Personal Information Exchange - PKCS #12 (.PFX)

  1. In the new wizard kill “Next”
  2. Select “Yes , Export the private key”
  3. Click “Next”
  4. Select “Personal Information Exchange – PKCS #12 Certificates (PFX)”
  5. Select “Enable Strong protection (requires IE5.0, NT4 SP4 or above)”
  6. Click “Next”
  7. Type a password for the certificate twice and kill “Next”
  8. Select “Browse” c:\serverFQDN.pfx”
  9. Click “Next”
  10. Check the export information and if correct kill “Finish”
  11. Click “OK” to finish the export

Save the .pfx on desktop and copy it to the unmanaged Windows Server 2008 R2

Install the Client certificates on unmanaged Windows Server 2008 R2

  1. Login the Windows Server 2008 R2
  2. On the start menu kill “Start” and “Run”

  3. Type “cmd”

  4. Navigate to > cd “program files\System Center Operations Manager 2007\Supportools\i386”

  5. Type >MOMcertimport.exe “c\:servername.domain.com.pfx” or “c:\servername.pfx”

  6. Type the asked password for the certificate import and press “Enter”.

  7. The certificate is now imported in OpsMgr 2007.

  8. Restart the “OpsMgr Health Service” on the server.

Reference:

How to Obtain a Certificate Using Windows Server 2003 Stand-Alone CA in Operations Manager 2007

http://technet.microsoft.com/en-us/library/bb735417.aspx

How to use Certificate Services Web enrollment pages together with Windows Vista or Windows Server 2008

http://support.microsoft.com/kb/922706/en-us

Update for Windows Server 2003 (KB922706)

http://www.microsoft.com/en-us/download/details.aspx?id=4758

http://www.toolzz.com/?p=279

http://blogs.technet.com/b/operationsmgr/archive/2009/09/10/step-by-step-for-using-certificates-to-communicate-between-agents-and-the-opsmgr-2007-server.aspx Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment