You will find here some very useful commands for Sitecore 9 installation journey. From requirements setup to Publish and rebuild index.
Solr Setup
- Check Solr status:
<solr installation folder\>bin\solr status
- Start Solr in with specific port:
<solr installation folder\>bin\solr.cmd start -p 8984
- Generate a Self-Signed Certificate and a Key :
<solr installation folder\server\etc\>keytool -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass secret -storepass secret -validity 9999 -keystore solr-ssl.keystore.jks -ext SAN=DNS:localhost,IP:192.168.1.3,IP:127.0.0.1 -dname "CN=localhost, OU=Organizational Unit, O=Organization, L=Location, ST=State, C=Country"
- Convert JKS keystore into PKCS12 :
<solr installation folder\server\etc\>keytool -importkeystore -srckeystore solr-ssl.keystore.jks -destkeystore solr-ssl.keystore.p12 -srcstoretype jks -deststoretype pkcs12
- Convert PKCS12 format keystore, including both the certificate and the key, into PEM format :
<solr installation folder\server\etc>openssl pkcs12 -in solr-ssl.keystore.p12 -out solr-ssl.pem
- Allow chrome to accept self-signed certificate for localhost (Please : Not for your production website). Another option is to add the Self-Signed Certificate to a Trusted authorities.
chrome://flags/#allow-insecure-localhost
- Running Solr as a Windows Services (Download NSSM):
<NSSM folder\>nssm install Solr
References :
- https://lucene.apache.org/solr/guide/6_6/enabling-ssl.html#EnablingSSL-ConvertthecertificateandkeytoPEMformatforusewithcURL
Sitecore Installation Framework
TBD
Comments by Mohamed Krimi