Azure-Samples / service-fabric-java-getting-started

Getting started with Service Fabric with Java
20 stars 34 forks source link

Same kind of example using HTTPS #16

Open hugo-hur opened 7 years ago

hugo-hur commented 7 years ago

Can you create example out of this EchoServer project but such that it uses SSL/HTTPS with certificate. I cannot find any information how this kind of service could be set up with HTTPS communication which is essential in many applications. Main problem as far as I know is the loading of certificate as all applications usually load the certificate from the disk using FileInputStream. If I can load the certificate from somewhere it seems trivial to implement the server code using com.sun.net.httpserver.HttpsServer. Is there some Java API that I'm unaware about that would allow to load certificate from some storage in azure or from another place? How should one go about f.e. porting this example to use HTTPS server in that manner?