The error you found was strictly about Webmin. Unless Webmin was installed using a true certificate from a CA, it uses a self-signed certificate (on Linux CentOS) one is generated by default. It does have an expiration date and the system op can regen a self-signed certificate via command line or even webmin.
Been running Webmin for years and if browsers (like FireFox) warn it won't auto accept the self signed cert, I always 'make the exception' in FireFox and use webmin running https ... rather than using http. Reason is simple ... even if self-signed and not provided by a Certificate of Authority, traffic is encrypted ... some encryption is better than none ... considering when one logs into Webmin one is essentially like root user. So, unless you are using a corporate controled workstation, it's better, IMHO, to use webmin under https - even if self-signed.
A guess: as far as the issue with PDF's in Moodle ... you must be using file system repo and uploading to a file system repo using webmin. Then linking in Moodle to the PDF's/other files. OR, you are uploading via Webmin to a directory outside of Moodle all together and using URL's to link to the files via Moodle. There is no module or addon to webmin that will interact with Moodle's true file system ... in moodledata/filedir/.
Anyhoo, good to hear it's fixed for ya ... just thought I'd encourage you to use Webmin more securely.
'spirit of sharing', Ken