I have Azure public IP, that points to Azure Container instances. For this I'm using load balancer:
I can navigate to http://40.68.242.95/ and see, that my website is working. How can I configure https connection for this public ip address? Ie how can I make https://40.68.242.95/ from it?
I tried to reproduce the same in my environment it works fine successfully.
you can able to configure your public Ip address to https using Azure application gateway along with self-signed certificate the only way can made changes.
Try to create a self-signed certificate using windows powershell ISE like below.
Create an app gateway with public Ip,and you can use your exciting public ip address also.
In configuration tab add a routing rule apply frontend Ip as public and protocol as HTTPS with 443 port and upload a pfx certificate which created through powershell stored in C: drive like below.
Once application gateway created you can make use of public ip as https like below.
Click on advance if you see connection is not private and proceed to support application gateway self-signed support though https.
Reference:
https://learn.microsoft.com/en-us/azure/application-gateway/redirect-http-to-https-portal
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.