Creating a local ssl certificate is easy. You can do so by creating a self signed certificate in IIS and assigning that to you local site. However you may notice that with newer TLS 1.2 standard, tools like TDS (Team Development for Sitecore) and others stop working and complain about local certificates with errors like
Exception: System.Security.Authentication.AuthenticationException
Message: The remote certificate is invalid according to the validation procedure.
To fix this issue, these were the steps I followed. Hope this helps others that are facing similar issues.
1. Run the following Powershell command to create a local self signed cert (replace xxx.local.com with your local dns):
2. Win Key + search for "Manage computer certificates". Make sure your certificate is in the following 3 locations (image below). If it is not, then copy them from the personal -> certificate to the other location.
Next go to the certificate in the personal -> certificate folder. Right click the certificate and choose All Tasks -> Export.
Export this certificate as a pfx file
3. Win Key + search for "Manage user certificates" and import your pfx file into the personal\cerficates folder.
Also make sure that your certificate is in the below 2 folders (same as the image above)
That's it, assign this new certificate to your website and you should be good to go!
Exception: System.Security.Authentication.AuthenticationException
Message: The remote certificate is invalid according to the validation procedure.
To fix this issue, these were the steps I followed. Hope this helps others that are facing similar issues.
1. Run the following Powershell command to create a local self signed cert (replace xxx.local.com with your local dns):
2. Win Key + search for "Manage computer certificates". Make sure your certificate is in the following 3 locations (image below). If it is not, then copy them from the personal -> certificate to the other location.
Next go to the certificate in the personal -> certificate folder. Right click the certificate and choose All Tasks -> Export.
Export this certificate as a pfx file
3. Win Key + search for "Manage user certificates" and import your pfx file into the personal\cerficates folder.
Also make sure that your certificate is in the below 2 folders (same as the image above)
That's it, assign this new certificate to your website and you should be good to go!
Worked. Thanks!
ReplyDelete