Search code examples
microservicesapi-gatewaykongkonga

How to configure HTTPS services/api on kong


Previously I configured api/services on Kong as HTTP and it was working fine. Now I made api/services as HTTPS in back end and I changed protocol http to https for all api/services on Kong. But after changing http to https protocol i unable to access api's.

Can you please tell me what I have to do? Here is my services configuration on kong enter image description here

Route enter image description here

Please help me.


Solution

  • HTTPS is used to protect data exchanges from anyone looking into them.

    You are configuring data exchange between your gateway and upstream servers.

    Your microservices are most likely deployed into the same closed virtual private network where kong gateway is located.

    It is unlikely that anyone could sniff on data traffic which goes between API gateway and your microservices.

    Setup of encryption in your virtual private network will just waste computational resources which you could allocate to extra workers which do usefull things.

    What you probably need is to configure SSL certificate at kong gateway public interface. To do this you can add your SSL certificate in Konga GUI in CERTIFICATES section. enter image description here