Porting Aether to Java

Hello, I am wrapping my head aroundporting Aether to java, the point I am at is this

Made a working skeleton that includes HSQLDB + Jetty + GWT support (with a basica page)

I am now reading reading about the Mim protocol https://getaether.net/mim-docs/ and have a copuple of questions

  1. would it be optimal to have a second Jetty webserver, on a separate port to handle Mim or it could be a “servlet” inside the GWT instance of Jetty ?

  2. Mim requires that all connections are HTTPS, how do you deal with the certificates ?

Thanks for any that will answer

WIshing all of you a wonderful 2021