A self-signed certificate it's very easy to create and helps on with local development and testing.
With a Single Line of PowerShell code we create a certificate.
First, open the PowerShell as Administrator and run the following command:
New-SelfSignedCertificate `
–DnsName <DNS-Name> `
-CertStoreLocation "cert:\LocalMachine\My&