In Sitecore 9, the SOLR connection is secure by default. The effect is that if your development environment includes a shared SOLR server, your local IIS requires a SSL certificate issued for that server, even when your local site does not run HTTPS.
This makes installing a local dev environment a little but more complicated, which is why my colleague Kristian Gansted made this guide for me:
STEP 1: GET THE SSL CERTIFICATE FOR THE SOLR SSL SERVER
DevOps should provide you with the appropriate .pfx file.
Double click the file and follow the guide:
STEP 2: USE THE CERTIFICATE IMPORT WIZARD TO INSTALL THE CERTIFICATE
Select the Local Machine and click next:
On the “File to Import“, the file name is already chosen so just click next, and go the “Private key protection“. Do not select a password, just click “Next”:
In the Certificate Store, click “Browse…” and select the “Personal” store:
Click “Next” and click “Finish”. The certificate is now installed.
STEP 3: ALLOW AppPool ACCESS TO THE CERTIFICATE
Find the “Manage computer certificates” control panel:
Find the certificate under the “Personal” certificates, right click and find the “Manage Private Keys…” under “All Tasks“:
Press “Add” (1) to add a new user.
Press “Locations” (2) and select the machine to search in the correct location.
Then type “IIS APPPOOL/[name of IIS site]”:Give the user full control.
Your IIS site is now ready to access the SOLR server.
MORE TO READ:
- Quickly add SSL to Solr by Kam Figy
- Setting up Solr with SSL for Sitecore 9 by Rameez Akram
- Sitecore 9 – set up SOLR SSL step by step by Łukasz Skowroński
- Generate trusted local SSL cert for Solr from GitHub
- HOW TO INSTALL SOLR WITH SSL ON WINDOWS 10 by Byron Calisto