Reputation: 6309
I am running my custom application on Azure VM. Now I want to provide HTTPs support using Self-signed certification for my application.
I did the following
$JAVA_HOME/bin/keytool -genkey -alias test -keyalg RSA -keysize 2048 -keystore sample.jks -dname "CN=test,OU=admin,O=sample,L=Redwood City,ST=CA,C=US" -storepass testing -keypass testing
redirect_port=443 ssl_port=443 keystore=sample.jks keystore_password=testing truststore=sample.jks truststore_password=testing
firewall-cmd --zone=public --permanent --add-service=https systemctl restart firewalld netstat -ln tcp6 0 0 :::443 :::* LISTEN
This site can’t be reached myip took too long to respond.
Update:-
I made it working by myself after adding 443 port in NSG rule. Now it is working.
Upvotes: 0
Views: 133
Reputation: 72191
So 3 moving parts:
https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-vnet-plan-design-arm
https://learn.microsoft.com/en-us/azure/firewall/overview
Upvotes: 1