It should work out of the box, but of course you need a valid certificate (which is not included in Xampp) and you have to configure it correctly. There is an exampled included in httpd-ssl.conf
Go for a tutorial about SSL, get you a certificate and configure your Apache. This forum is not meant to explain basic Apache Knowledge, we only can give some support on installation "Xampp for Linux" problems. You have to read documentation and learn Apache configuration on yourself, that exceeds this forum by far.
Fair enough. I've found the tutorials I've looked at point to folders that don't exist and unknown commands. This was kind of a last resort. It was possibly some help all the same.