<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to tell Alfresco clients to all use HTTPS?   (share.port=??? &amp; share.protocol=???) in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-tell-alfresco-clients-to-all-use-https-share-port-share/m-p/142073#M37837</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/85891"&gt;@michaelzietlow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations on figuring this out yourself &amp;amp; also thanks for updating your thread on how you did - super helpful!&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 13:23:30 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2021-07-05T13:23:30Z</dc:date>
    <item>
      <title>How to tell Alfresco clients to all use HTTPS?   (share.port=??? &amp; share.protocol=???)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-tell-alfresco-clients-to-all-use-https-share-port-share/m-p/142071#M37835</link>
      <description>&lt;P&gt;&amp;nbsp; I am running Community7.0 behind a reverse proxy (HAPROXY) which redirects all HTTP(80) traffic to use HTTPS(443).&amp;nbsp; &amp;nbsp;NGINX's alfresco.conf has ssl_certificate specified so my connections to the outside world are secure.&amp;nbsp;&amp;nbsp;&amp;nbsp;Since communication between NGINX and ALFRESCO on the box itself are all &lt;A href="http://127.0.0.1:8080" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8080&lt;/A&gt;, all connected clients are instructed to use HTTP(80).&amp;nbsp; This, of course, gets redirected to HTTPS(443) by HAPROXY so everything stays encrypted however all these necessary redirects are messy IMO.&lt;/P&gt;&lt;P&gt;QUESTION 1:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;My research leads me to a thread that instructs adding the following to my global properties file and I want to know if this will tell all clients to use HTTPS(443) when coming back into HAPROXY so it doesn't have to redirect everything?&lt;/P&gt;&lt;PRE&gt;alfresco.context=alfresco
alfresco.host=alfresco.YourDomainGoesHere.com
alfresco.port=443
alfresco.protocol=https

share.context=share
share.host=${alfresco.host}
share.port=${alfresco.port}
share.protocol=${alfresco.protocol}&lt;/PRE&gt;&lt;P&gt;QUESTION 2:&lt;BR /&gt;I recall my original Alfresco5.2 build using HTTPS on port :8443 for nginx to tomcat communication so the redirect issue I see now never came up.&amp;nbsp; &amp;nbsp;Is there a SSL Certificate installation guide for Community7.0 to encrypting traffic HTTPS(8443)?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 16:55:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-tell-alfresco-clients-to-all-use-https-share-port-share/m-p/142071#M37835</guid>
      <dc:creator>michaelzietlow</dc:creator>
      <dc:date>2021-06-30T16:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell Alfresco clients to all use HTTPS?   (share.port=??? &amp; share.protocol=???)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-tell-alfresco-clients-to-all-use-https-share-port-share/m-p/142072#M37836</link>
      <description>&lt;P&gt;I was able to get this to happen by defining an SSL/TLS HTTP/1.1 Connector on port 8443 following the instructions here:&amp;nbsp;&lt;A href="https://tomcat.apache.org/tomcat-10.0-doc/ssl-howto.html#Configuration" target="_blank" rel="noopener nofollow noreferrer"&gt;https://tomcat.apache.org/tomcat-10.0-doc/ssl-howto.html#Configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/etc/opt/alfresco/tomcat/conf/server.xml:&lt;/P&gt;&lt;PRE&gt;    &amp;lt;Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" SSLEnabled="true"&amp;gt;
        &amp;lt;SSLHostConfig&amp;gt;
            &amp;lt;Certificate certificateKeystoreFile="/opt/keystore/keystore.jks"
                         certificateKeystorePassword="changeit"
                         type="RSA" /&amp;gt;
        &amp;lt;/SSLHostConfig&amp;gt;
    &amp;lt;/Connector&amp;gt;&lt;/PRE&gt;&lt;P&gt;Then change all the proxy_pass &lt;A href="http://127.0.0.1:8080" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8080&lt;/A&gt; lines to use &lt;A href="https://127.0.0.1:8443" target="_blank" rel="noopener nofollow noreferrer"&gt;https://127.0.0.1:8443&lt;/A&gt; in nginx conf&lt;BR /&gt;/etc/nginx/conf.d/alfresco.conf:&lt;/P&gt;&lt;PRE&gt;...&lt;BR /&gt;        location /share/ {
            proxy_pass https://localhost:8443;
	    proxy_set_header    X-Forwarded-Proto https;
            proxy_set_header    X-Real-IP        $remote_addr;
            proxy_set_header    X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_set_header	X-NginX-Proxy    true;
	    proxy_set_header	Host		 $http_host;
            proxy_set_header	Upgrade          $http_upgrade;
            proxy_pass_header	Set-Cookie;
	    proxy_redirect 	http://$host	https://$host;
        }&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Now I don't see all the constant 302 redirect messages in my logs.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 22:49:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-tell-alfresco-clients-to-all-use-https-share-port-share/m-p/142072#M37836</guid>
      <dc:creator>michaelzietlow</dc:creator>
      <dc:date>2021-06-30T22:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell Alfresco clients to all use HTTPS?   (share.port=??? &amp; share.protocol=???)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-tell-alfresco-clients-to-all-use-https-share-port-share/m-p/142073#M37837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/85891"&gt;@michaelzietlow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations on figuring this out yourself &amp;amp; also thanks for updating your thread on how you did - super helpful!&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 13:23:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-tell-alfresco-clients-to-all-use-https-share-port-share/m-p/142073#M37837</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-07-05T13:23:30Z</dc:date>
    </item>
  </channel>
</rss>

