Note
In several lines of the following sample code, line breaks (denoted by the symbol ~) are inserted to make the lines fit the width of page. Do not insert line breaks into lines of actual working code.
Set the property
useSslin the file%DISCOVER_DATA_CAS_APP%\config\cas\last-mile-crawl.xmlto true. The default is false. For example:<moduleProperty> <key>useSsl</key> <value>true</value> </moduleProperty>Set the
sslEnabledproperty in the<custom-component id="CAS" ... >element in the%ENDECA_APP%\config\script\DataIngest.xmlfile to true, as follows:<custom-component id="CAS" host-id="ITLHost" class="com.endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent"> <properties> ......... <property name="casPort" value="8500" /> <property name="sslEnabled" value="true" /> ......... </properties> ......... </custom-component>
Update the hostname in
initialize_services.batto specify a fully qualified name (for example,slcw5dd.us.example.com)and port.Update the hostname in the
load_baseline_test_data.batfile, under%DISCOVER_DATA_CAS_APP%\control\.Add the following settings to
index_config_cmd.bat:SET JAVA_ARGS=%JAVA_ARGS% -Djavax.net.ssl.trustStore=C:/Endeca/ToolsAndFrameworks/11.3.1.5.0/deployment_template/ssl_certs_utility /bin/ssl/TS-slcw5dd.us.example.com.ks -Djavax.net.ssl.trustStoreType=JKS -Djavax.net.ssl.trustStorePassword=eacpass SET JAVA_ARGS=%JAVA_ARGS% -Djavax.net.ssl.keyStore=C:/Endeca/ToolsAndFrameworks/11.3.1.5.0/deployment_template/ssl_certs_utility /bin/ssl/slcw5dd.us.example.com.ks -Djavax.net.ssl.keyStoreType=JKS -Djavax.net.ssl.keyStorePassword=eacpass
Note
The two following steps alone are sufficient to enable SSL communication for the CAS Server.
Make the following changes in
%ENDECA_CAS_ROOT%\..\workspace\conf\server.xml:Comment the HTTP connector as follows:
<!-- <Connector port="8500" protocol="HTTP/1.1" connectionTimeout="60000"~ redirectPort="8443" URIEncoding="UTF-8"/> -->Remove comments from the HTTPS connector. Then set the
clientAuthproperty to "true", and specify values for thekeyStoreFileandtrustStoreFileproperties; for example:<Connector port="8446" SSLEnabled="true" sslEnabledProtocol="TLSv1.1,TSLv1.2" maxThreads="150" scheme="https" secure="true" clientAuth="true" sslEnabledProtocols="TLSv1.1,TLSv1.2" keystoreFile="conf\eac.ks" keystorePass="eacpass" truststoreFile="conf\ca.ks" truststorePass="eacpass" URIEncoding="UTF-8"/>
Set the following properties in
last-mile-crawl.xml, providing appropriate values for host_name and cas_ssl_port:<moduleProperty> <key>host</key> <value>host_name</value> </moduleProperty> <moduleProperty> <key>port</key> <value>cas_ssl_port</value> </moduleProperty> <moduleProperty> <key>isPortSsl</key> <value>true</value> </moduleProperty>

