Your SOLR instance is not secure. I recommend you install Solr 6.6.2, it works better than 6.6.1.
To make your solr instance secure please follow these steps:
Using the JDK Keytool command we can create self-signed certificates to be used by the SOLR instance. For the following steps, the following variables are used.
You should replace these variables with your applicable path when typing out the commands.
{JAVA_HOME} : The path where you have Java installed (e.g.C:\Program Files (x86)\jre1.8.0_131)
{SOLR_HOME} : The path where you have Solr installed (e.g. C:\solr\solr-6.6.2)
NOTE: The following steps are based on instructions provided by Apache (https://lucene.apache.org/solr/guide/6_6/enabling-ssl.html) with alterations that I used to simplify the flow:
Open command prompt
Change to the Solr 'etc' directory:
cd "{SOLR_HOME}\server\etc"
Execute the keygentool command
"{JAVA_HOME}\bin\keytool.exe" -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass secret -storepass secret -validity 9999 -keystore solr-ssl.keystore.jks -ext SAN=DNS:localhost,IP:127.0.0.1 -dname "CN=localhost, OU=Organizational Unit, O=Organization, L=Location, ST=State, C=Country"
This will generate the keystore with a password of 'secret' as valid for localhost and 127.0.0.1. You can add other DNS and IPs as desired, or skip hostname verification. See full instructions at: https://lucene.apache.org/solr/guide/6_6/enabling-ssl.html
Convert generated JKS to PKCS12
"{JAVA_HOME}\bin\keytool.exe" -importkeystore -srckeystore solr-ssl.keystore.jks -destkeystore solr-ssl.keystore.p12 -srcstoretype jks -deststoretype pkcs12
Enter password when prompted. The password secret
was used in the previous step. Remember to use your password instead if you changed it in the keygen command parameters.
Open Windows Explorer and navigate to the 'etc' directory ("{SOLR_HOME}\server\etc")
Double-click on the generated 'p12' file (solr-ssl.keystore.p12 if you used the default parameters from the previous steps)
In the dialog, specify the following values:
Store Location: Local Machine
File name: Leave as provided
Password: secret
Certificate Store: Trusted Root Certification Authorities
Remember to use your password instead if you changed it during the previous steps.
Open the solr.in.cmd file for editing (e.g. {SOLR_HOME}\bin\solr.in.cmd)
Edit the SSL settings:
set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
set SOLR_SSL_KEY_STORE_PASSWORD=secret
set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
set SOLR_SSL_TRUST_STORE_PASSWORD=secret
set SOLR_SSL_NEED_CLIENT_AUTH=false
set SOLR_SSL_WANT_CLIENT_AUTH=false
Remember to update passwords and file paths to match to the parameters you specified.
- Restart SOLR to pick up the changes.