This has basically nothing to do with your Perl code. It is mainly an issue of configuring your web server properly so that it uses the appropriate SSL certificate.
I think that https://letsencrypt.org/ most likely provides information on how to configure your (unstated) web server. Otherwise, maybe there are paid options from your hosting provider.
|