Our web application has this setup:
Nginx (Static content) -> Tomcat (APIs are hosted here)
We are hosting these two servers in a public cloud, possibly on different physical servers.
We want to make our website https, so bought a SSL certificate for our domain, which protects anything coming into Nginx.
Now my question is, how do I protect the requests from Nginx to Tomcat API? To secure that connection, do I need to buy a separate SSL certificate? If so, there is no domain for the APIs on tomcat, so what should I buy? I don't think I should buy using an IP address.. so what is the right approach? Thanks.