To create a self signed certificate for sitecore domain in the local use following command in PS.
New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "habitat93.local.com" -FriendlyName "habitat93.local.com" -NotAfter (Get-Date).AddYears(10)
After this ensure to check the check box Require Server Name Indication. Otherwise, same certificate will be assigned to other hostnames as soon as you create new hostname for the site.
Thanks!
https://sitecorepeanuts.blogspot.com/2024/06/sitecore-self-signed-certificate.html
ReplyDelete