How To Install SSL Certificate

Download Browser Generated Certificate to Windows

  1. Create your Certificate in EZCA

  2. Download the PEM certificate Download Certificate

  3. Open your favorite terminal.

  4. Navigate to the folder where your certificate was saved.

  5. Run the following command to convert the pem file to a format Windows understands (pfx) where YOURDOWNLOADEDCERTIFICATE is the pem certificate you downloaded from EZCA and YOURDESIREDOUTPUTFILE is the name of the file you want to create.

    If you get an error of openssl not being installed, you can get the latest binaries from here

    openssl pkcs12 -inkey YOURDOWNLOADEDCERTIFICATE.pem -in YOURDOWNLOADEDCERTIFICATE.pem -export -out YOURDESIREDOUTPUTFILE.pfx
    
  6. Enter a password to protect your private key. Convert Certificate

  7. This should create a new PFX certificate with the name you entered. Convert Certificate

  8. Now that the certificate is in a Windows compatible format, open your preferred certificate store.

    For the current user only

    1. Search in the Windows search bar for “Manage user certificate”. Open User Store
    2. Click on the application.

    For all the users in this computer (Requires Administrator permissions)

    1. Search in the Windows search bar for “Manage computer certificate”. Open Local Store
    2. Click on the application.
  9. Click on Personal. Import Certificate

  10. Click on Certificates. Import Certificate

  11. Right Click on any whitespace.

  12. Select All Tasks -> Import. Windows Store

  13. Click “Next” on the fist page of the wizard.

  14. Click the “Browse…” button. Windows Store

  15. Select the pfx certificate you just created (You might have to change the file type on the bottom right to show all files). Convert Certificate

  16. Click “Next”. Import Certificate

  17. Enter the password you set when converting the certificate. Import Certificate

  18. (Optional but recommended) Select the “Protect private key using virtualized-based security” to make your private key non exportable. Import Certificate

  19. Click “Next”. Import Certificate

  20. Click “Next”. Import Certificate

  21. Click “Finish”. Import Certificate

  22. Your certificate should now be imported in your certificate store. Import Certificate

Merge Certificate with Certificate Request in Windows

If you [Created a Certificate Request Locally](/create-new-certificate/create_csrcert/ and now need to install the certificate in windows, follow these steps:

  1. Download your certificate. Download Certificate
  2. Search in the Windows search bar for “Manage user certificate”. Open User Store
  3. Click on the application.
  4. Click on Personal. Import Certificate
  5. Click on Certificates. Import Certificate
  6. Right Click on any whitespace.
  7. Select All Tasks -> Import. Windows Store
  8. Click “Next” on the fist page of the wizard.
  9. Click the “Browse…” button. Windows Store
  10. Select the certificate you just downloaded. Windows Store
  11. Click “Next”. Import Certificate
  12. Click “Next”. Import Certificate
  13. Click “Finish”. Import Certificate
  14. Your certificate should now be imported in your certificate store. Import Certificate

Getting The Certificate From The Azure Portal

  1. Navigate to https://portal.azure.com
  2. Navigate to the Azure Key Vault you selected to keep this certificate.
  3. Click on Certificates Review AKV Cert
  4. You should see a certificate with the following name convention “CERTIFICATENAME"EZCA"RANDOMNUMBER” where CERTIFICATENAME is the subject name for your certificate and RANDOMNUMBER is a random number created by EZCA to avoid collisions in the Azure Key Vault. Review AKV Cert
  5. Click on the certificate
  6. Click on the current version Review AKV Cert
  7. This will open the certificate details page.
  8. From the certificate details page you can download the CER formatted certificate (No private key) or the PFX/PEM format that contains the private key. Review AKV Cert
  9. Once you have downloaded the certificate, you can use the “Merge Certificate with Certificate Request in Windows” section above to import your certificate.

Use Azure Key Vault Certificate In C#

  1. Retrieve a Certificate From Azure Key Vault Using C#

Use Azure Key Vault Certificate in VM

  1. Azure Key Vault Extension For Automatically Downloading Certificates to Windows VM
  2. Azure Key Vault Extension For Automatically Downloading Certificates to Linux VM