You have to search for a commercial SSL certificate which supports that. Letsencrypt does not support ssl on ip's. Best is to redirect it.
I know DA took out that option, but maybe it's possible to create a .htaccess redirect to the hostname to achieve this in the /var/www/html directory or something like that. SSL on ip is very very rarely used and most ssl providers do not even support it as far as I know.