how can i use the external ip of my centos7 instance with https, like for example https://external_ip to open an application like https://external_ip:Port/my_application
Asked
Active
Viewed 34 times
1 Answers
0
Generate a self-sign certificate using openssl.
Check this out here: https://stackoverflow.com/a/10176685/9662626
Open a https port on your webserver. Set the certificate in the config (I can't be specific here because I don't know about your operating system and your choice of web server). Finally setup a reverse proxy to proxy the web server port to your app port.

Algo7
- 2,122
- 1
- 8
- 19
-
thanks for your reaction, SE = Centos7, web = apache but can i use the automatic certificates with which i connected on the instance via ssh on the browser – 13.1.26 Apr 21 '20 at 01:45
-
What do you mean by the automatic certificate? And I'm just a bit confused with this ssh and browser thing. Are you using aws ec2 or gcp or something similar? – Algo7 Apr 21 '20 at 01:47
-
The key that you got is for ssh not https. The two protocols are different. – Algo7 Apr 21 '20 at 02:00
-
ok I understand, I thought the same key could still be used thank you – 13.1.26 Apr 21 '20 at 02:05
-
not totally, but thanks anyway. I will approach the assistance of gcp for the rest – 13.1.26 Apr 21 '20 at 02:12
-
Alright. But I don't think gcp will be UN charge getting this whole https thing to work. Unless they are also a certificate authority. – Algo7 Apr 21 '20 at 02:16