Saturday, August 29, 2015

Self Signed SSL Certificate with MakeCert

Requirement: Create a self signed certificate for SSL with private key and public key

Solution:
The following command can be used to create private key and public key. 

makecert -r -pe -n "CN=mycompany.com" -b 08/07/2015 -e 08/07/2040 -sky exchange Server.cer -sv Server.pvk
pvk2pfx.exe -pvk Server.pvk -spc Server.cer -pfx Server.pfx

Additional Details:
To understand the command more in details, please refer below link:

Access to XMLHttpRequest at 'from origin has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. .net core angular

Issue: The angular application was getting error from API that the origin has been blocked by CORS policy. Solution: Make sure that the...