Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.67 KB

File metadata and controls

43 lines (26 loc) · 1.67 KB

Create and install Self-Signed certificate

Generate certificate using Azure key vault.

  1. Open Azure key vault and navigate to Certificates section.
  2. Click on Generate/Import button to create a certificate.

Generate certificate

  1. Fill the required details. Make sure Method of Certificate Creation is Generate.

Fill details

  1. Once the certificate is created, open the certificate and copy the thumbprint. This will be the value of CertificateThumbprint in appsettings.json file

  2. Click on Current version of certificate.

Certificate Operation

  1. It will open a menu, click on Download in PFX/PEM format

Download certificate

Install certificate.

Once the download is completed open the downloaded certificate.

Click on next and ignore the password and click next again and when it ask to store certificate enter Personal.

Certificate Store

Click on Finish to continue.

Get base64 certificate string

  1. Open Manage user certificate from start menu.
  2. Go to Personal -> Certificates and open certificate you installed.
  3. Go to Details tab and click on Copy to File...

Copy certificate

  1. Click on next-next and select format as Base-64 encoded X.509 (.CER).
  2. Give it a path and Finish the process.
  3. Right click on exported certificate and Open with notepad
  4. Copy the content between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----. This will be the value of Base64EncodedCertificate in appsettings.json file.