Search code examples
securitysslhttpsdnsssl-certificate

Service to add HTTPS to an API without my own SSL certificate or domain


I have an api served at a hypothetical address http://82.12.61.115:8000 (note the port).

I want to have a domain point at that IP address and then secure that domain with an SSL certificate.

Is there any service I can use (e.g. AWS) to do this without buying the domain and SSL certificate? Since it is just an API, it doesn't have to be pretty, it can be a subdomain of another domain as long as it's secured.

On a related note, will using port 8000 be a problem (as opposed to 80 or 443)?


Solution

  • You can actually use AWS API Gateway as a proxy service. It will give you a domain name with SSL. Check this guide. Please remember that this won't add SSL to your API instance, end of the day communication between your API and API gateway will be unsecured. But you will get a nice URL that you can call from the frontend.