title: Keycloak Docker HTTPS required
body: <p>I have initialized <a href="https://hub.docker.com/r/jboss/keycloak/" rel="noreferrer">https://hub.docker.com/r/jboss/keycloak/</a> on my Digital Ocean Docker Droplet. </p>
  
  <p><code>$docker run -e KEYCLOAK_USER=admin -e -p 8080:8080 KEYCLOAK_PASSWORD={password with upcase etc.} jboss/keycloak</code></p>
  
  <blockquote>
    <p>success</p>
  </blockquote>
  
  <p>Everything worked well and the server started in the Droplets IP address on a port :8080. </p>
  
  <p>Problems started when I entered the admin console from the UI in the URL. There was a message: "HTTPS required". This was a real issue and the only solution I have found is to login to the Keycloak from the console and to change the setting of HTTPS=required from admin console without the UI.</p>
  
  <p>I then opened the bash for my Docker container :</p>
  
  <p><code>$docker exec -it keycloak bash</code> </p>
  
  <blockquote>
    <p>success</p>
  </blockquote>
  
  <p>As I entered my command to login in the keycloak/bin folder:</p>
  
  <p><code>cd keycloak/bin</code></p>
  
  <p><code>keycloak/bin $./kcadm.sh config credentials --server http://&lt;droplet IP&gt;:8080/auth --realm master --user admin --password {password with upcase etc.}</code> </p>
  
  <blockquote>
    <p>the bash freezes and gives a timeout message after some time</p>
  </blockquote>
  
  <p>Reason for logging in from bash would be complete this:</p>
  
  <p><code>keycloak/bin $ ./kcadm.sh update realms/master -s sslRequired=NONE</code>. </p>
  
  <p>which would hopefully solve the original problem of HTTPS required.</p>