So i want to setup a payment server with hibiscus (https://www.willuhn.de/products/hibiscus-server/) and make the connection encrypted with a trusted certificate. Hibiscus is basically a java servlet which creates a own self signed ssl certificate, which acording to the author can not be replaced with another ssl certificate because the private key is used to encrypt other things.
So my idea is: Setup nginx with a proxy from port 443 to hibiscuses port 8080, tell nginx to trust the certificate of hibiscus and encrypt nginx's 443 with a letsencrypt cert. nginx would need to unpack the secure content form hibiscus and then repack it as its own content right?
Does anyone now if this is possible and how?
All help is much appreciated