Open powershell in admin mode
Run below set of commands
New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname "sitecorewebsite.cd" -FriendlyName "sitecorewebsite.cd" -NotAfter (Get-Date).AddYears(5)
copy and note down the Thumbprint value generated from above powershell Command
Run below command
Export-Certificate -Cert cert:\localMachine\my\<paste- copied-thumbprint-of-cert-value> -FilePath "C:\certificates\sitecorewebsite.cd.pfx"
Make sure self signed ssl cert created for right website name for e.g sitecorewebsite.cd
Go to c:/certificate and lookup for generated certificate name as
sitecorewebsite.cd
.pfxNext step is to add the above generated certificate to a trusted certificate authority
Go to run and type mmc.exe
Select file-->Add/Remove-snap-in
Double click on certificates, Choose the ‘Computer account' option, then 'Local computer’ & Click Finish
The cert that you exported should already be visible in the 'Personal' store of your Local Computer
Copy the cert from personal store and paste it in Trusted Root Certificates Authorities
Go to IIS and navigate your site, add binding https and select the certificate from the dropdown. Restart IIS and you should be able to browse your site with https.
No comments :
Post a Comment