Enforce HTTPS for xConnect Search
|
Applies to |
xConnect Collection Search, xConnect Search Indexer |
|
Sitecore Installation Framework |
HTTPS is enforced by default. |
This topic describes how to enforce communication over HTTPS between the xConnect Search Indexer and the xDB index, and the xConnect Collection Search service role and the xDB index.
Enforce HTTPS for Solr
HTTPS is enforced by default. To allow HTTP in a development environment, set RequireHttps to false. This is not recommended in a production environment.
To enforce HTTPS for Solr:
-
Set up Solr with SSL.
-
For the xConnect Search Indexer, open the
<xconnect-search-indexer>\App_data\Config\Sitecore\SearchIndexer\sc.Xdb.Collection.IndexWriter.SOLR.xmlfile and set theRequireHttpssetting to true:RequestResponse<Options> <ConnectionStringName>solrCore</ConnectionStringName> <RequireHttps>true</RequireHttps> <Encoding>utf-8</Encoding> </Options> .. note:: This steps assumes that your search indexer is located in the *jobs* sub-folder of your xConnect Search instance. -
For every instance of the xConnect Collection Search role, open the
C:\path\to\xconnect\App_data\config\sitecore\CollectionSearch\sc.Xdb.Collection.IndexReader.SOLR.xmlfile and set bothRequireHttpssettings to true:RequestResponse<Solr.SolrReaderSettings> <Type>Sitecore.Xdb.Collection.Search.Solr.SolrReaderSettings, Sitecore.Xdb.Collection.Search.Solr</Type> <LifeTime>Singleton</LifeTime> <Options> <ConnectionStringName>solrCore</ConnectionStringName> <RequireHttps>true</RequireHttps> <Encoding>utf-8</Encoding> </Options> </Solr.SolrReaderSettings> <Solr.SolrWriterSettings> <Type>Sitecore.Xdb.Collection.Search.Solr.SolrWriterSettings, Sitecore.Xdb.Collection.Search.Solr</Type> <LifeTime>Singleton</LifeTime> <Options> <ConnectionStringName>solrCore</ConnectionStringName> <RequireHttps>true</RequireHttps> <MaximumUpdateBatchSize>1000</MaximumUpdateBatchSize> <MaximumDeleteBatchSize>1000</MaximumDeleteBatchSize> <MaximumCommitMilliseconds>1000</MaximumCommitMilliseconds> <ParallelizationDegree>4</ParallelizationDegree> <MaximumRetryDelayMilliseconds>5000</MaximumRetryDelayMilliseconds> <RetryCount>5</RetryCount> <Encoding>utf-8</Encoding> </Options> </Solr.SolrWriterSettings> -
For all roles that connect to the xDB index, ensure that the
solrCoreconnection string in\App_data\ConnectionStrings.configuse HTTPS:RequestResponse<add name="solrCore" connectionString="https://yourSolrInstance/" />