11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

in/solr.in.sh example SOLR_SSL_* configuration<br />

SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks<br />

SOLR_SSL_KEY_STORE_PASSWORD=secret<br />

SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks<br />

SOLR_SSL_TRUST_STORE_PASSWORD=secret<br />

# Require clients to authenticate<br />

SOLR_SSL_NEED_CLIENT_AUTH=false<br />

# Enable clients to authenticate (but not require)<br />

SOLR_SSL_WANT_CLIENT_AUTH=false<br />

When you start <strong>Solr</strong>, the bin/solr script includes the settings in bin/solr.in.sh and will pass these<br />

SSL-related system properties to the JVM.<br />

Client Authentication Settings<br />

Enable either SOLR_SSL_NEED_CLIENT_AUTH or SOLR_SSL_WANT_CLIENT_AUTH but not both at<br />

the same time. They are mutually exclusive and Jetty will select one of them which may not be what you<br />

expect.<br />

Similarly, when you start <strong>Solr</strong> on Windows, the bin\solr.cmd script includes the settings in bin\solr.in.cm<br />

d - uncomment and update the set of properties beginning with SOLR_SSL_* to pass these SSL-related system<br />

properties to the JVM:<br />

bin\solr.in.cmd example SOLR_SSL_* configuration<br />

set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks<br />

set SOLR_SSL_KEY_STORE_PASSWORD=secret<br />

set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks<br />

set SOLR_SSL_TRUST_STORE_PASSWORD=secret<br />

REM Require clients to authenticate<br />

set SOLR_SSL_NEED_CLIENT_AUTH=false<br />

REM Enable clients to authenticate (but not require)<br />

set SOLR_SSL_WANT_CLIENT_AUTH=false<br />

Run Single Node <strong>Solr</strong> using SSL<br />

Start <strong>Solr</strong> using the command shown below; by default clients will not be required to authenticate:<br />

*nix command<br />

bin/solr -p 8984<br />

Windows command<br />

bin\solr.cmd -p 8984<br />

<strong>Solr</strong>Cloud<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

527

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!