i have a website to control the AC's individually. I have hosted my website in server and generally it will hosted in https. When i send a request to Arduino mega with ethernet that connected to a static IP and that will be http only. when i send request it rejected by browser itself. Because website hosted on https. So that i want to assign a https ip in my Arduino . Is there any possible ways to do that ?
I really don't think a Mega has the capacity to handle an encrypted connection.
You need to use a more powerful microcontroller like an ESP32 for example
Even though the ESP32 has a built-in WiFi interface, there is nothing stopping you from using an Ethernet module.
In reality, the ESP32 also has an integrated Ethernet controller, all you need is a transceiver, the problem is that there is not much available in the form of ready-made modules (take a look at the circuit diagrams of the Espressif Ethernet dev-kits)
You could also choose another MCU with similar computing capabilities.