Sunday, February 20, 2022

Creating Self Signed Certificate for a wild card domain

 For creating a Self Signed Certificate, 

Step 1:

Open windows powershell in admin mode and enter the below command,

New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\my -DnsName "*.<domainname>" -FriendlyName "*.<domainname>" -NotAfter (Get-Date).AddYears(25)

Post running this, your self signed certificate will be created

Step 2:

Open microsoft management console Start > Manage User Certificate > 


The certificate that we created will be under Personal > Certificate. 

We can simply click on them and COPY and then come to the Trusted Root Certification Authorities > Certificates and then PASTE your certificate. 

Alternatively, we can also export the certificate from the Personal Certificate section and import it back into the Trusted Root Certification Authorities. 


No comments: