<?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: Cannot Authenticate with Keycloak Server when Keycloak use Self Sign Certificate in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cannot-authenticate-with-keycloak-server-when-keycloak-use-self/m-p/132799#M35776</link>
    <description>&lt;P&gt;Can you check the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Acosix/alfresco-keycloak/blob/master/docs/Simple-Configuration.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Acosix/alfresco-keycloak/blob/master/docs/Simple-Configuration.md&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 May 2024 16:35:29 GMT</pubDate>
    <dc:creator>unibravo</dc:creator>
    <dc:date>2024-05-25T16:35:29Z</dc:date>
    <item>
      <title>Cannot Authenticate with Keycloak Server when Keycloak use Self Sign Certificate</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-authenticate-with-keycloak-server-when-keycloak-use-self/m-p/132798#M35775</link>
      <description>&lt;P&gt;Dear all, I have test Alfresco Community 7.1 with Keycloak.&lt;BR /&gt;My Keycloak use https (self signed certificate)&lt;BR /&gt;&lt;BR /&gt;My&amp;nbsp;alfresco-global.properties (Alfresco Repository)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;# ==============================
# Authenticate with Keycloak
# =============================

# Authentication Subsystem Chain
authentication.chain=identity-service1:identity-service,alfrescoNtlm1:alfrescoNtlm

# Alfresco Identity Service configuration
identity-service.enable-basic-auth=true
identity-service.authentication.validation.failure.silent=false

# Keycloak Internal Server with Self Sign Certificate
identity-service.auth-server-url=https://192.168.10.25/auth

identity-service.realm=guru
identity-service.resource=alfresco-client
identity-service.public-client=true
identity-service.ssl-required=none

csrf.filter.referer=https://192.168.11.22:443
csrf.filter.origin=https://192.168.11.22:443/*

aims.enabled=true
aims.realm=guru
aims.resource=alfresco-client

# Keycloak Internal Server with Self Sign Certificate
aims.authServerUrl=https://192.168.10.25/auth

aims.publicClient=true&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;My&amp;nbsp;share-config-custom.xml (Alfresco Share)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;alfresco-config&amp;gt;

   &amp;lt;config evaluator="string-compare" condition="Users" replace="true"&amp;gt;
      &amp;lt;users&amp;gt;
         &amp;lt;username-min-length&amp;gt;2&amp;lt;/username-min-length&amp;gt;
         &amp;lt;password-min-length&amp;gt;3&amp;lt;/password-min-length&amp;gt;
         &amp;lt;show-authorization-status&amp;gt;false&amp;lt;/show-authorization-status&amp;gt;
      &amp;lt;/users&amp;gt;
      &amp;lt;enable-external-users-panel&amp;gt;false&amp;lt;/enable-external-users-panel&amp;gt;
   &amp;lt;/config&amp;gt;


   &amp;lt;config evaluator="string-compare" condition="AIMS"&amp;gt;
     &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
     &amp;lt;realm&amp;gt;guru&amp;lt;/realm&amp;gt;
     &amp;lt;resource&amp;gt;alfresco-client&amp;lt;/resource&amp;gt;
     &amp;lt;authServerUrl&amp;gt;https://192.168.10.25/auth&amp;lt;/authServerUrl&amp;gt;
     &amp;lt;sslRequired&amp;gt;none&amp;lt;/sslRequired&amp;gt;
     &amp;lt;publicClient&amp;gt;true&amp;lt;/publicClient&amp;gt;
   &amp;lt;/config&amp;gt;

&amp;lt;/alfresco-config&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;When I start alfresco with docker ompose command. It show error like this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="error-when-authenticate-keycloak-self-sign-cert.jpg" style="width: 731px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1439i0ECAC5D2A250AA16/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="error-repo.jpg" style="width: 746px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1437i9D96ACFBDD016656/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="error-share.jpg" style="width: 669px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1438i5D386B95FBB7EE2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But if I use another Keycloak Server on Public Cloud with Valid Certificate (Lets Encrypt) It can work without problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My Question is, How to configure alfresco to use with Keycloak Internal Server which use Self Sign Certificate.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 06:56:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-authenticate-with-keycloak-server-when-keycloak-use-self/m-p/132798#M35775</guid>
      <dc:creator>chanwitkepha202</dc:creator>
      <dc:date>2022-03-01T06:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Authenticate with Keycloak Server when Keycloak use Self Sign Certificate</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-authenticate-with-keycloak-server-when-keycloak-use-self/m-p/132799#M35776</link>
      <description>&lt;P&gt;Can you check the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Acosix/alfresco-keycloak/blob/master/docs/Simple-Configuration.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Acosix/alfresco-keycloak/blob/master/docs/Simple-Configuration.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 16:35:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-authenticate-with-keycloak-server-when-keycloak-use-self/m-p/132799#M35776</guid>
      <dc:creator>unibravo</dc:creator>
      <dc:date>2024-05-25T16:35:29Z</dc:date>
    </item>
  </channel>
</rss>

