# Keyclock installation issue -

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1724235812472/716341a9-6a8b-431a-837a-1d7a7143c796.png align="center")

  
Search

[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---two_column_layout_nav-----------------------new_post_topnav-----------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fiamarshrx.medium.com%2Fsetting-up-keycloak-docker-with-https-requirement-issue-4d6574652fc4&source=post_page---two_column_layout_nav-----------------------global_nav-----------)

![](https://miro.medium.com/v2/resize:fill:64:64/1*dmbNkD5D-u45r44go_cf0g.png align="left")

# **Setting Up Keycloak Docker with HTTPS Requirement Issue**

![Arshak Ahamed](https://miro.medium.com/v2/resize:fill:88:88/1*rFmKYzJizahvFDAO3rRGZg.jpeg align="left")

[Arshak Ahamed](https://iamarshrx.medium.com/?source=post_page-----4d6574652fc4--------------------------------)

·

[Follow](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fsubscribe%2Fuser%2Ff2f9463aa5bb&operation=register&redirect=https%3A%2F%2Fiamarshrx.medium.com%2Fsetting-up-keycloak-docker-with-https-requirement-issue-4d6574652fc4&user=Arshak+Ahamed&userId=f2f9463aa5bb&source=post_page-f2f9463aa5bb----4d6574652fc4---------------------post_header-----------)

2 min read·Feb 14, 2024

7

1

![](https://miro.medium.com/v2/resize:fit:365/1*G6zopnWSCkO4YcYdqCtJzQ.jpeg align="left")

In this article, we’ll address a common issue encountered when setting up Keycloak using Docker. Specifically, we’ll discuss the error message “HTTPS required” and provide a step-by-step solution to resolve it

Problem:

When running the Docker command `docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:23.0.6 start-dev`, users often encounter an error stating that HTTPS is required.

Solution:

Fortunately, there is a straightforward solution to this problem. Follow these steps to resolve the HTTPS requirement issue:

Step 1: Start the Docker Container

Begin by starting the Docker container. Use the following command to launch the Keycloak container:

```plaintext
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:23.0.6 start-dev
```

Step 2: Log into the Docker Container

Once the container is running, open a new terminal window or tab. Use the following command to access the running container:

```plaintext
docker exec -it <container_id> /bin/bash
```

Replace `<container_id>` with the ID of the Keycloak container. You can find the container ID by running `docker ps`.

Step 3: Access the Keycloak Bin Directory

Navigate to the bin directory within the Keycloak container:

```plaintext
cd /opt/keycloak/bin/
```

Step 4: Configure Keycloak Credentials

Now, configure the Keycloak credentials using the `kcadm.sh` script. Replace `localhost:8080` with the appropriate Keycloak server address and port if necessary.

```plaintext
./kcadm.sh config credentials --server localhost:8080 --realm master --user admin
```

Step 5: Update Realm Settings

Update the realm settings to disable SSL requirement. This command sets the `sslRequired` parameter to `NONE`.

```plaintext
./kcadm.sh update realms/master -s sslRequired=NONE --server localhost:8080
```

Conclusion:

By following these steps, you can successfully resolve the “HTTPS required” error encountered when setting up Keycloak within a Docker container. This solution allows you to configure Keycloak to accept connections without HTTPS, enabling smooth integration with your development environment. Remember to adjust server addresses and ports as needed for your specific setup.

Special Thanks:

We would like to extend our gratitude to the contributors of the Stack Overflow thread [here](https://stackoverflow.com/questions/70577004/keycloak-could-not-find-resource-for-full-path) for providing valuable insights into resolving similar issues. Their discussions have been instrumental in addressing challenges faced by the community.

[Keycloak](https://medium.com/tag/keycloak?source=post_page-----4d6574652fc4---------------keycloak-----------------)

[Https](https://medium.com/tag/https?source=post_page-----4d6574652fc4---------------https-----------------)

[Docker](https://medium.com/tag/docker?source=post_page-----4d6574652fc4---------------docker-----------------)

[Containers](https://medium.com/tag/containers?source=post_page-----4d6574652fc4---------------containers-----------------)

[Authentication](https://medium.com/tag/authentication?source=post_page-----4d6574652fc4---------------authentication-----------------)

7

1

![Arshak Ahamed](https://miro.medium.com/v2/resize:fill:144:144/1*rFmKYzJizahvFDAO3rRGZg.jpeg align="left")

## [**Written by Arshak Ahamed**](https://iamarshrx.medium.com/?source=post_page-----4d6574652fc4--------------------------------)

[10 Followers](https://iamarshrx.medium.com/followers?source=post_page-----4d6574652fc4--------------------------------)

Lead Software Engineer (Full Stack) & Tech enthusiastic

Follow

## **More from Arshak Ahamed**

![Integrating Keycloak Authentication with Angular: A Comprehensive Guide](https://miro.medium.com/v2/resize:fit:849/1*3G2L-6m48izk0gttL6Q2bA.png align="left")

![Arshak Ahamed](https://miro.medium.com/v2/resize:fill:25:25/1*rFmKYzJizahvFDAO3rRGZg.jpeg align="left")

[Arshak Ahamed](https://iamarshrx.medium.com/?source=author_recirc-----4d6574652fc4----0---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

## [**Integrating Keycloak Authentication with Angular: A Comprehensive Guide**](https://iamarshrx.medium.com/integrating-keycloak-authentication-with-angular-a-comprehensive-guide-fbe987da0036?source=author_recirc-----4d6574652fc4----0---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

### [Introduction](https://iamarshrx.medium.com/integrating-keycloak-authentication-with-angular-a-comprehensive-guide-fbe987da0036?source=author_recirc-----4d6574652fc4----0---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

Oct 13, 2023[4](https://iamarshrx.medium.com/integrating-keycloak-authentication-with-angular-a-comprehensive-guide-fbe987da0036?source=author_recirc-----4d6574652fc4----0---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

![A Seamless Guide to Keycloak Integration with .NET Applications: Enhance Security & User Management](https://miro.medium.com/v2/resize:fit:849/1*ONds4jRQSf4vGeKNUCe95w.png align="left")

![Arshak Ahamed](https://miro.medium.com/v2/resize:fill:25:25/1*rFmKYzJizahvFDAO3rRGZg.jpeg align="left")

[Arshak Ahamed](https://iamarshrx.medium.com/?source=author_recirc-----4d6574652fc4----1---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

## [**A Seamless Guide to Keycloak Integration with .NET Applications: Enhance Security & User Management**](https://iamarshrx.medium.com/a-seamless-guide-to-keycloak-integration-with-net-applications-enhance-security-user-management-ac93b5d0d74?source=author_recirc-----4d6574652fc4----1---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

### [Keycloak is an open-source identity and access management solution that provides robust authentication, authorization, and single sign-on…](https://iamarshrx.medium.com/a-seamless-guide-to-keycloak-integration-with-net-applications-enhance-security-user-management-ac93b5d0d74?source=author_recirc-----4d6574652fc4----1---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

Jul 28, 2023[56](https://iamarshrx.medium.com/a-seamless-guide-to-keycloak-integration-with-net-applications-enhance-security-user-management-ac93b5d0d74?source=author_recirc-----4d6574652fc4----1---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

![Secure API Authentication: Integrating Keycloak with Laravel](https://miro.medium.com/v2/resize:fit:849/1*vD1ydg0M20FJg1JHmT4FcQ.jpeg align="left")

![Arshak Ahamed](https://miro.medium.com/v2/resize:fill:25:25/1*rFmKYzJizahvFDAO3rRGZg.jpeg align="left")

[Arshak Ahamed](https://iamarshrx.medium.com/?source=author_recirc-----4d6574652fc4----2---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

## [**Secure API Authentication: Integrating Keycloak with Laravel**](https://iamarshrx.medium.com/secure-api-authentication-integrating-keycloak-with-laravel-c36c3199f7fa?source=author_recirc-----4d6574652fc4----2---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

### [Introduction: Authentication is paramount for any web application, particularly APIs. Laravel, renowned for its robust features, serves as…](https://iamarshrx.medium.com/secure-api-authentication-integrating-keycloak-with-laravel-c36c3199f7fa?source=author_recirc-----4d6574652fc4----2---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

May 17[11](https://iamarshrx.medium.com/secure-api-authentication-integrating-keycloak-with-laravel-c36c3199f7fa?source=author_recirc-----4d6574652fc4----2---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

![My Journey with Keycloak and Docker: A Step-by-Step Guide to Local Deployment](https://miro.medium.com/v2/resize:fit:849/1*VGD39weNmoQ4oCWaWNTDcg.png align="left")

![Arshak Ahamed](https://miro.medium.com/v2/resize:fill:25:25/1*rFmKYzJizahvFDAO3rRGZg.jpeg align="left")

[Arshak Ahamed](https://iamarshrx.medium.com/?source=author_recirc-----4d6574652fc4----3---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

## [**My Journey with Keycloak and Docker: A Step-by-Step Guide to Local Deployment**](https://iamarshrx.medium.com/my-journey-with-keycloak-and-docker-a-step-by-step-guide-to-local-deployment-bc3a9b54492b?source=author_recirc-----4d6574652fc4----3---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

### [In my recent projects, the recurring challenge of managing user identities effectively kept surfacing. That’s when I stumbled upon…](https://iamarshrx.medium.com/my-journey-with-keycloak-and-docker-a-step-by-step-guide-to-local-deployment-bc3a9b54492b?source=author_recirc-----4d6574652fc4----3---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

Sep 22, 2023[17](https://iamarshrx.medium.com/my-journey-with-keycloak-and-docker-a-step-by-step-guide-to-local-deployment-bc3a9b54492b?source=author_recirc-----4d6574652fc4----3---------------------4dd6879c_b127_496c_b730_97ae3a7a90e5-------)

[See all from Arshak Ahamed](https://iamarshrx.medium.com/?source=post_page-----4d6574652fc4--------------------------------)

## **Recommended from Medium**

![Step-by-Step Guide to Activate SSL with Certbot in NGINX](https://miro.medium.com/v2/resize:fit:849/1*yuVzMhCJyDENbyhwAsrkwA.png align="left")

![Chinmay Roy](https://miro.medium.com/v2/resize:fill:25:25/1*B63iHE85b7RWg56beedm5g.jpeg align="left")

[Chinmay Roy](https://chinmayroy.medium.com/?source=read_next_recirc-----4d6574652fc4----0---------------------1250664e_0cad_4b54_a313_52191267096b-------)

## [**Step-by-Step Guide to Activate SSL with Certbot in NGINX**](https://chinmayroy.medium.com/step-by-step-guide-to-activate-ssl-with-certbot-in-nginx-445faa229013?source=read_next_recirc-----4d6574652fc4----0---------------------1250664e_0cad_4b54_a313_52191267096b-------)

### [To activate SSL effectively and easily for your Nginx server, you can use Certbot, a free tool that helps automate the process of…](https://chinmayroy.medium.com/step-by-step-guide-to-activate-ssl-with-certbot-in-nginx-445faa229013?source=read_next_recirc-----4d6574652fc4----0---------------------1250664e_0cad_4b54_a313_52191267096b-------)

Jun 14

![Use Keycloak to log into Google Workspace (KeyCloak 25 SAML SSO)](https://miro.medium.com/v2/resize:fit:849/0*8YgouGjU8wH8yjUn.png align="left")

![MszPro](https://miro.medium.com/v2/resize:fill:25:25/1*WR41Ei1wO48T1HY7UnA61g.png align="left")

[MszPro](https://medium.com/@MszPro?source=read_next_recirc-----4d6574652fc4----1---------------------1250664e_0cad_4b54_a313_52191267096b-------)

## [**Use Keycloak to log into Google Workspace (KeyCloak 25 SAML SSO)**](https://medium.com/@MszPro/use-keycloak-to-log-into-google-workspace-keycloak-25-saml-sso-a9b9923b4354?source=read_next_recirc-----4d6574652fc4----1---------------------1250664e_0cad_4b54_a313_52191267096b-------)

### [This guide talks about setting your enterprise Keycloak as a way your employee can log into their Google Workspace.](https://medium.com/@MszPro/use-keycloak-to-log-into-google-workspace-keycloak-25-saml-sso-a9b9923b4354?source=read_next_recirc-----4d6574652fc4----1---------------------1250664e_0cad_4b54_a313_52191267096b-------)

Aug 1

## **Lists**

![](https://miro.medium.com/v2/da:true/resize:fill:60:60/0*gzCeWxDtGmD23QR5 align="left")

![](https://miro.medium.com/v2/resize:fill:60:60/1*di4WDrnS1F6_p9GWnxvPmg.png align="left")

![](https://miro.medium.com/v2/resize:fill:60:60/1*PzJLbFrFtNkqPsxielO8zA.jpeg align="left")

## [**Coding & Development**](https://medium.com/@jscribes/list/coding-development-e360d380bb82?source=read_next_recirc-----4d6574652fc4--------------------------------)

[11 stories·750 saves](https://medium.com/@jscribes/list/coding-development-e360d380bb82?source=read_next_recirc-----4d6574652fc4--------------------------------)

![](https://miro.medium.com/v2/resize:fill:60:60/1*I-JS9KVpDGJhSI3DOh8Z-Q.png align="left")

![](https://miro.medium.com/v2/resize:fill:60:60/1*t3TQv-PJNXDxkJngSmpjEg.jpeg align="left")

![](https://miro.medium.com/v2/resize:fill:60:60/1*vRLUR6BbhF72bUpq69N6RQ.png align="left")

## [**Natural Language Processing**](https://medium.com/@AMGAS14/list/natural-language-processing-0a856388a93a?source=read_next_recirc-----4d6574652fc4--------------------------------)

[1656 stories·1228 saves](https://medium.com/@AMGAS14/list/natural-language-processing-0a856388a93a?source=read_next_recirc-----4d6574652fc4--------------------------------)

![Running PostgreSQL in Docker Container with Volume](https://miro.medium.com/v2/resize:fit:849/1*tJJAbwBMQqjIXu1bwHz5nw.png align="left")

![Usama Malik](https://miro.medium.com/v2/resize:fill:25:25/1*C79DAVqIfoJ8ElAiG5A8og.png align="left")

[Usama Malik](https://medium.com/@cloudwithusama?source=read_next_recirc-----4d6574652fc4----0---------------------1250664e_0cad_4b54_a313_52191267096b-------)

## [**Running PostgreSQL in Docker Container with Volume**](https://medium.com/@cloudwithusama/running-postgresql-in-docker-container-with-volume-24b9d88c2f01?source=read_next_recirc-----4d6574652fc4----0---------------------1250664e_0cad_4b54_a313_52191267096b-------)

### [In this article, we’ll explore how to run PostgreSQL in a Docker container while ensuring data persistence using Docker volumes.](https://medium.com/@cloudwithusama/running-postgresql-in-docker-container-with-volume-24b9d88c2f01?source=read_next_recirc-----4d6574652fc4----0---------------------1250664e_0cad_4b54_a313_52191267096b-------)

4d ago[4](https://medium.com/@cloudwithusama/running-postgresql-in-docker-container-with-volume-24b9d88c2f01?source=read_next_recirc-----4d6574652fc4----0---------------------1250664e_0cad_4b54_a313_52191267096b-------)

![Create a Custom Keycloak Reset Password Link](https://miro.medium.com/v2/resize:fit:849/1*v3XrGYMa7cMgZlWTcbVkHg.jpeg align="left")

![Denis Bélanger](https://miro.medium.com/v2/resize:fill:25:25/1*lWKw94sFDzE_RsknPlkiWw.png align="left")

[Denis Bélanger](https://medium.com/@tempmailwithpassword?source=read_next_recirc-----4d6574652fc4----1---------------------1250664e_0cad_4b54_a313_52191267096b-------)

## [**Create a Custom Keycloak Reset Password Link**](https://medium.com/@tempmailwithpassword/create-a-custom-keycloak-reset-password-link-98f618821daa?source=read_next_recirc-----4d6574652fc4----1---------------------1250664e_0cad_4b54_a313_52191267096b-------)

### [Setting Up Password Reset in Keycloak](https://medium.com/@tempmailwithpassword/create-a-custom-keycloak-reset-password-link-98f618821daa?source=read_next_recirc-----4d6574652fc4----1---------------------1250664e_0cad_4b54_a313_52191267096b-------)

Aug 5[3](https://medium.com/@tempmailwithpassword/create-a-custom-keycloak-reset-password-link-98f618821daa?source=read_next_recirc-----4d6574652fc4----1---------------------1250664e_0cad_4b54_a313_52191267096b-------)

![Guide to Running Keycloak Instance with Docker](https://miro.medium.com/v2/resize:fit:849/1*5EDwH0lcs81qz3hwHX_0kA.png align="left")

![elaurichenickson](https://miro.medium.com/v2/resize:fill:25:25/1*ey6VgVk0UQq1PNyqRaCUzw.jpeg align="left")

[elaurichenickson](https://medium.com/@elaurichetoho?source=read_next_recirc-----4d6574652fc4----2---------------------1250664e_0cad_4b54_a313_52191267096b-------)

## [**Guide to Running Keycloak Instance with Docker**](https://medium.com/@elaurichetoho/guide-to-running-keycloak-instance-with-docker-e2a2b9d083a1?source=read_next_recirc-----4d6574652fc4----2---------------------1250664e_0cad_4b54_a313_52191267096b-------)

### [Introduction](https://medium.com/@elaurichetoho/guide-to-running-keycloak-instance-with-docker-e2a2b9d083a1?source=read_next_recirc-----4d6574652fc4----2---------------------1250664e_0cad_4b54_a313_52191267096b-------)

Feb 26[51](https://medium.com/@elaurichetoho/guide-to-running-keycloak-instance-with-docker-e2a2b9d083a1?source=read_next_recirc-----4d6574652fc4----2---------------------1250664e_0cad_4b54_a313_52191267096b-------)

![Secure API Authentication: Integrating Keycloak with Laravel](https://miro.medium.com/v2/resize:fit:849/1*vD1ydg0M20FJg1JHmT4FcQ.jpeg align="left")

![Arshak Ahamed](https://miro.medium.com/v2/resize:fill:25:25/1*rFmKYzJizahvFDAO3rRGZg.jpeg align="left")

[Arshak Ahamed](https://iamarshrx.medium.com/?source=read_next_recirc-----4d6574652fc4----3---------------------1250664e_0cad_4b54_a313_52191267096b-------)

## [**Secure API Authentication: Integrating Keycloak with Laravel**](https://iamarshrx.medium.com/secure-api-authentication-integrating-keycloak-with-laravel-c36c3199f7fa?source=read_next_recirc-----4d6574652fc4----3---------------------1250664e_0cad_4b54_a313_52191267096b-------)

### [Introduction: Authentication is paramount for any web application, particularly APIs. Laravel, renowned for its robust features, serves as…](https://iamarshrx.medium.com/secure-api-authentication-integrating-keycloak-with-laravel-c36c3199f7fa?source=read_next_recirc-----4d6574652fc4----3---------------------1250664e_0cad_4b54_a313_52191267096b-------)

May 17[11](https://iamarshrx.medium.com/secure-api-authentication-integrating-keycloak-with-laravel-c36c3199f7fa?source=read_next_recirc-----4d6574652fc4----3---------------------1250664e_0cad_4b54_a313_52191267096b-------)

[See more recommendations](https://medium.com/?source=post_page-----4d6574652fc4--------------------------------)

[Help](https://help.medium.com/hc/en-us?source=post_page-----4d6574652fc4--------------------------------)

[Status](https://medium.statuspage.io/?source=post_page-----4d6574652fc4--------------------------------)

[About](https://medium.com/about?autoplay=1&source=post_page-----4d6574652fc4--------------------------------)

[Careers](https://medium.com/jobs-at-medium/work-at-medium-959d1a85284e?source=post_page-----4d6574652fc4--------------------------------)

[Press](https://iamarshrx.medium.com/pressinquiries@medium.com?source=post_page-----4d6574652fc4--------------------------------)

[Blog](https://blog.medium.com/?source=post_page-----4d6574652fc4--------------------------------)

[Privacy](https://policy.medium.com/medium-privacy-policy-f03bf92035c9?source=post_page-----4d6574652fc4--------------------------------)

[Terms](https://policy.medium.com/medium-terms-of-service-9db0094a1e0f?source=post_page-----4d6574652fc4--------------------------------)

[Text to speech](https://speechify.com/medium?source=post_page-----4d6574652fc4--------------------------------)

[Teams](https://medium.com/business?source=post_page-----4d6574652fc4--------------------------------)
