You can redirect from the IP address on HTTP to the hostname on HTTP(S), but if someone enters the IP address manually with https:// (or HTTPS is used by default such as Chrome nowadays does), you really need to have a certificate for an IP address.
As Bruce already mentioned, Let's Encrypt does not offer certificates for IP addresses. Currently, I know of only one free CA that offers certs with IP addresses and that's ZeroSSL. Unfortunately, their ACME server (currently) does not offer those IP address certificates: only using their web interface. And their web interface is limited to just 3 certificates per account...
Alternatively you could buy a certificate somewhere.
@mahmoudelfawair Your boss might not realize that accessing a site via HTTPS to its IP address actually doesn't work for the vast majority of web sites in the world.
I just looked up IP addresses for
Microsoft
Apple
kernel.org (Linux kernel development coordination)
GitHub
Amazon
A couple of U.S. government agencies
Let's Encrypt itself
The New York Times
Le Monde
Comcast (largest U.S. residential Internet service provider)
the German parliament
and tried to access all of them (with HTTPS) directly by IP address.
None of them worked!
As other people have said in this thread, there is such a thing as a publicly-trusted certificate for an IP address, but most certificate authorities don't issue them, and most web sites don't possess them. They are really quite rare and are most known for the (very few) web sites where the IP address is part of the public branding, such as https://1.1.1.1/ and https://8.8.8.8/.