How to use SSL on a public IP with Ubuntu server+XAMPP

This is obsolete.

Please look for the current installation procedure for certbot:

That's not going to happen. Not now, at least. Maybe in the future.

You can get a third level domain from a random dynamic DNS provider or buy a very cheap domain.