# Having issues while setting up keycloak for production environment

**URL:** <https://forum.keycloak.org/t/having-issues-while-setting-up-keycloak-for-production-environment/20319>\
**Category:** Configuring the server\
**Created:** [February 19, 2023, 6:37am UTC](https://forum.keycloak.org/t/having-issues-while-setting-up-keycloak-for-production-environment/20319 "2023-02-19T06:37:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moinuddin](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Moinuddin](https://forum.keycloak.org/u/Moinuddin)\
**Post date:** [February 19, 2023, 6:37am UTC](https://forum.keycloak.org/t/having-issues-while-setting-up-keycloak-for-production-environment/20319/1 "2023-02-19T06:37:57Z")

</div>

Hi, I am trying to setup keycloak on EC2 Ubuntu 22.04 server, I have unzipped it under the /opt/keycloak/ directory, and configured the keycloak.conf which is under the /opt/keycloak/conf/ directory. Under the keycloak.conf file I have configured the DB credentials, FYI I am using AWS RDS Postgres for it.  
For the HTTPS certification, I have also given the SSL certificate file in the keycloak.conf file and configured the hostname as well, After it, I ran the script “./kc.sh start”, but it threw the error. Please have a look at the attached screenshot.

 ![keycloak](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/0/0fa1d74047da949229a78986eac9b7e4ba7a052e.png)
