<commit_before><?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head>  <title>SSL</title>  <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body>  
<h1>SSL</h1>
<h2>Browser connects via SSL to Tomcat/Yanel</h2>
<h3>Binary Version</h3>
<p>Within the file <i>TOMCAT/webapps/yanel/WEB-INF/web.xml</i> one can set</p>
<p>
&lt;servlet&gt;<br/>
   ...<br/>
  &lt;init-param xmlns:webApp=&quot;http://java.sun.com/xml/ns/j2ee&quot;&gt;<br/>
    &lt;param-name&gt;ssl-port&lt;/param-name&gt;<br/>
    &lt;param-value&gt;8443&lt;/param-value&gt;<br/>
  &lt;/init-param&gt;<br/>
&lt;/servlet&gt;</p>Restart Tomcat (please make sure that Tomcat has SSL turned on, see &quot;conf/serverl.xml&quot;)
<h3>Source Version</h3>
<p>
Within the file <i>src/build/(local.)build.properties</i> one can set the parameters <i>tomcat1.ssl.port=8443</i> and <i>tomcat2.ssl.port=8443</i>. Then re-configure Tomcat (run &quot;configure&quot; to turn on SSL for Tomcat resp. patch &quot;conf/server.xml&quot;) resp. re-build (run &quot;build&quot; to patch the &quot;web.xml&quot; file) Yanel
</p>

<a name="trust-store"></a>
<h2>Yanel connects via SSL to third-party server</h2>
<p>In some cases Yanel might has to access third-party servers which are only accessible via SSL (e.g. ActiveMQ). In order to do so one can configure a trust-store inside Yanel as described in the following paragraphs:</p>

<h3>Creating a trust-store file called 'truststore.jks'</h3>
<p>Assuming that you have a certificate (named 'CA_CERTIFICATE') from the <a href="http://en.wikipedia.org/wiki/Certificate_authority">CA</a> that signed the third-party server's certificate. One can create a trust-store file (named 'truststore.jks') by executing the following command:</p>
<code>keytool -importcert -v -alias MY_CERTIFICATE_AUTHORITY_ALIAS -file CA_CERTIFICATE -storepass MY_PASSWORD -keystore truststore.jks</code>

<h3>Configuring the location of the trust-store</h3><commit_msg>hr added to differentiate better<commit_after><?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head>  <title>SSL</title>  <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body>  
<h1>SSL</h1>
<hr/>
<h2>Browser connects via SSL to Tomcat/Yanel</h2>
<h3>Binary Version</h3>
<p>Within the file <i>TOMCAT/webapps/yanel/WEB-INF/web.xml</i> one can set</p>
<p>
&lt;servlet&gt;<br/>
   ...<br/>
  &lt;init-param xmlns:webApp=&quot;http://java.sun.com/xml/ns/j2ee&quot;&gt;<br/>
    &lt;param-name&gt;ssl-port&lt;/param-name&gt;<br/>
    &lt;param-value&gt;8443&lt;/param-value&gt;<br/>
  &lt;/init-param&gt;<br/>
&lt;/servlet&gt;</p>Restart Tomcat (please make sure that Tomcat has SSL turned on, see &quot;conf/serverl.xml&quot;)
<h3>Source Version</h3>
<p>
Within the file <i>src/build/(local.)build.properties</i> one can set the parameters <i>tomcat1.ssl.port=8443</i> and <i>tomcat2.ssl.port=8443</i>. Then re-configure Tomcat (run &quot;configure&quot; to turn on SSL for Tomcat resp. patch &quot;conf/server.xml&quot;) resp. re-build (run &quot;build&quot; to patch the &quot;web.xml&quot; file) Yanel
</p>

<hr/>
<a name="trust-store"></a>
<h2>Yanel connects via SSL to third-party server</h2>
<p>In some cases Yanel might has to access third-party servers which are only accessible via SSL (e.g. ActiveMQ). In order to do so one can configure a trust-store inside Yanel as described in the following paragraphs:</p>

<h3>Creating a trust-store file called 'truststore.jks'</h3>
<p>Assuming that you have a certificate (named 'CA_CERTIFICATE') from the <a href="http://en.wikipedia.org/wiki/Certificate_authority">CA</a> that signed the third-party server's certificate. One can create a trust-store file (named 'truststore.jks') by executing the following command:</p>
<code>keytool -importcert -v -alias MY_CERTIFICATE_AUTHORITY_ALIAS -file CA_CERTIFICATE -storepass <PASSWORD> -keystore truststore.jks</code>

<h3>Configuring the location of the trust-store</h3>
{'fraction_non_alphanumeric': 0.16494845360824742, 'fraction_numerical': 0.017673048600883652, 'mean_word_length': 5.3374805598755835, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 2, '>': 110, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 18}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1118312', 'n_tokens_mistral': 1543, 'n_tokens_neox': 1469, 'n_words': 373}