It’s come to my attention that the getnonfreefonts perl script downloaded from tug.org’s website is no longer functional due to an expired certificate. I have devised a work around:
Workaround 1: Replacing the $getfont_url
Upon debugging, it was obvious that the wget call to https://www.tug.org/~kotucha/getnonfreefonts/getfont.pl is what is causing the problem. This can be overcome by replacing it with: https://patrickwang.co.uk/getfont.pl, this is done by navigating to
C:/texlive/2021/texmf-dist/scripts/getnonfreefonts/getnonfreefonts.pl and modifying line 15:
my $getfont_url='https://patrickwang.co.uk/getfont.pl';
Workaround 2: Ignore Certificate Error
The quick and dirty way (albeit less-secure) way to fix this involved modifying the scipt such that when wget is called, a -no-check-certificate flag is added. This is done by modifying the same script as in workaround 1 at line 496:
system ("$WGET", "$getfont_url", "--no-check-certificate") == 0
where we have added a third option --no-check-certificate
.