# Keycloak always uses a self signed certificate instead of my proper certificate HTTPS

**URL:** <https://forum.keycloak.org/t/keycloak-always-uses-a-self-signed-certificate-instead-of-my-proper-certificate-https/11216>\
**Category:** Configuring the server\
**Created:** [September 28, 2021, 12:03pm UTC](https://forum.keycloak.org/t/keycloak-always-uses-a-self-signed-certificate-instead-of-my-proper-certificate-https/11216 "2021-09-28T12:03:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudeHasler](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@claudeHasler](https://forum.keycloak.org/u/claudeHasler)\
**Post date:** [September 28, 2021, 12:03pm UTC](https://forum.keycloak.org/t/keycloak-always-uses-a-self-signed-certificate-instead-of-my-proper-certificate-https/11216/1 "2021-09-28T12:03:40Z")

</div>

Im trying to get keycloak to use my certificate (provided by proper signing authority) instead of the default self signed certificate. For some reason I cannot get it to work:

Ive used keytool to create my .jks file and imported my certificate into it. Ive even deleted the self signed alias out of the file. I’ve also downloaded the root CA from my signing authority and imported it. still nothing. Ive also used the CLI to tell keycloak to actually use the jks.

Is there any documentation for how this actually works with a proper certificate? The documentation works fine for the self signed certificate but otherwise im lost.

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [September 28, 2021, 5:08pm UTC](https://forum.keycloak.org/t/keycloak-always-uses-a-self-signed-certificate-instead-of-my-proper-certificate-https/11216/2 "2021-09-28T17:08:18Z")

</div>

The best documentation I’m aware of is here: [Setting up HTTPS/SSL](https://www.keycloak.org/docs/latest/server_installation/#_setting_up_ssl)

If you can post the steps and commands you used, perhaps we could help you debug.
