tls – How do I open port 443 or HTTPS in Windows Server and Ubuntu Server?

I'm trying to open Port 443 on Windows Server 2012 R2 and Ubuntu Server 18.04. I'm scanning both in Zenmap to see if port 443 is open and closed for both. I want it to be opened

I'm using iptables for Ubuntu Server and so far I have set the INPUT policy to accept ports 22 and 443. The OUTPUT policy is also set to ACCEPT. I installed Apache and created a self-signed SSL.

WINDOWS SERVER: I have set inbound rules to allow port 80 and port 443. I also set outbound rules to allow port 443. I have created a self-signed SSL certificate. I ran netstat -a on Powershell and said it's listening on port 443, but nmap's results do not even show a port.

Could someone please help me?