Thursday, November 19, 2015

Generate a Certificate Signing Request (CSR) in Server 2008 r2


  1. Log in as an administrator
  2. From a command prompt or the run menu:
    1. To create the certificate in the local machine store (recommended):
      1. Type mmc
      2. On the File menu, click Add/Remove Snap-in.  Click Certificates in the left pane, then click Add.  
      3. Select Computer Account, then click Next.
      4. Select Local Computer, then click Finish.  
      5. Click OK.  
    2. To create the certificate in the logged on user's personal store:
      1. Type certmgr.msc
  3. In the left pane expand Certificates (Local Computer), expand  Personal, then click Certificates.  
  4. On the Action menu, click All Tasks, then click Advanced Operations, then click Create Custom Request.
  5. Click Next.
  6. Select Proceed without enrollment policy.  Click Next.
  7. In the Template menu, select (No template) CNG key, and verify that Suppress default extensions is not selected.  (Note:  Some software may not be compatible with CNG keys.  In this case, select  (No template) Legacy key )(Note: specifically, the .Net X509Certificate2.PrivateKey method will throw an exception on CNG keys and ADFS 3.0 will refuse to accept them.)
  8. Under Request Format, select PKCS #10.  Click Next.  
  9. Click the arrow next to Details to expand the selection.  Click Properties.  
  10. On the General tab, provide a Friendly name and Description for the certificate.  These can be anything you want.  
  11. On the Subject tab, in the Subject name box:
    1. In the Type menuselect Common name.  In the Value field, type the fully qualified domain name of the server (e.g. myhost.washington.edu), and click Add.  
    2. In the Type menuselect Organization.  In the Value field, type University of Washington.  Click Add.
    3. In the Type menuselect State.  In the Value field, type WA.  Click Add.
    4. In the Type menuselect Country.  In the Value field, type US.  Click Add.
    5. (Optional)  In the Type menu, select Email.   In the Value field, type a contact email address.  Click Add.
  12. (Optional) On the Subject tab, in the Alternative name box, enter subject alternative names if you need them (these can also be requested when you submit the CSR).  
  13. (Optional) If you want to restrict how this certificate can be used, you can select the appropriate options under Key usage and Extended Key Usage on the Extensions tab.  
  14. On the Private Key tab, expand Cryptographic Service Provider.  Select RSA, Microsoft Software Key Storage Provider.  Make sure no other options are selected.  (Note:  If you selected  (No template) Legacy key in Step 7, select Microsoft RSA SChannel Crytographic Provider  (Encryption) instead.  This option is usually at the end of the list. ).  
  15. On the Private Key tab, expand Key Options.  
  16. In the Key size menu, select a value of at least 2048.  
  17. Select Make private key exportable.  This step is only required if you will use this certificate on another computer (e.g. in a clustered environment), or with an application that does not use the Windows certificate store (e.g. Mozilla Firefox).  
  18. Click OK.
  19. Click Next.
  20. Choose a file name and location for the CSR.  Select Base 64.  Click Finish.  
  21. Submit the CSR to the InCommon or UW CA.

No comments:

Post a Comment